Go to the documentation of this file.
65 #ifndef XSSTRINGARRAY_H
66 #define XSSTRINGARRAY_H
78 #define XSSTRINGARRAY_INITIALIZER XSARRAY_INITIALIZER(&g_xsStringArrayDescriptor)
85 #define XsStringArray_destruct(thisPtr) XsArray_destruct(thisPtr)
93 struct XsStringArray :
public XsArrayImpl<XsString, g_xsStringArrayDescriptor, XsStringArray>
109 : ArrayImpl(ref, sz, flags)
121 #ifndef XSENS_NOITERATOR
122 template <
typename Iterator>
125 : ArrayImpl(beginIt, endIt)
159 ptrdiff_t find(
XsString const& needle,
bool isCaseSensitive =
true)
const
162 return XsArrayImpl<XsString, g_xsStringArrayDescriptor, XsStringArray>::find(needle);
168 for (XsString::iterator c = needleLower.begin(); c != needleLower.end(); ++c)
171 for (
XsSize i = 0; i < size(); ++i)
174 if (a.size() != needleLower.size())
178 for (
XsSize j = 0; j < a.size(); ++j)
180 if (tolower(a[j]) != needleLower[j])
This object describes how to treat the data in an array.
XSARRAY_STRUCT(XsStringArray, struct XsString)
A list of XsString values.
void XsStringArray_fromSplicedString(struct XsStringArray *thisPtr, struct XsString const *src, struct XsString const *separators)
Splice the supplied string and put the resulting substrings in the string array.
const XsArrayDescriptor XSTYPES_DLL_API g_xsStringArrayDescriptor
Descriptor for XsStringArray.
size_t XsSize
XsSize must be unsigned number!
XSTYPES_DLL_API void XsStringArray_construct(XsStringArray *thisPtr, XsSize count, struct XsString const *src)
struct XsStringArray XsStringArray
XsDataFlags
These flags define the behaviour of data contained by Xsens data structures.
void XsStringArray_join(struct XsStringArray const *thisPtr, struct XsString *result, struct XsString const *separator)
Join the string array into a single string, inserting separator between substrings.
A 0-terminated managed string of characters.