74 #include <nuttx/config.h> 76 #include <sys/types.h> 175 memcpy(buffer,
m_text, dataLength);
176 buffer[dataLength] =
'\0';
208 int length = strlen(text);
217 for (
int i = 0; i < length; i++)
278 for (
unsigned int i = 0; i < text.
getLength(); i++)
333 for (
int i = 0; i < index; i++)
342 for (
unsigned int i = 0; i < text.
getLength(); i++)
364 m_stringLength = newLength;
383 for (
unsigned int i = 0; i < text.
getLength(); i++)
432 int endIndex = startIndex + count;
522 int charsExamined = 0;
525 if (!iterator->
moveTo(startIndex))
533 if (iterator->
getChar() == letter)
541 while (iterator->
moveToNext() && (charsExamined < count));
597 int charsExamined = 0;
600 if (!iterator->
moveTo(startIndex))
608 if (iterator->
getChar() == letter)
651 if (!iterator->
moveTo(startIndex))
661 while (count < length)
730 return memcmp((FAR
const char*)
m_text,
int compareTo(const CNxString &string) const
bool moveToPrevious(void)
const int lastIndexOf(nxwidget_char_t letter) const
void append(const CNxString &text)
FAR nxwidget_char_t * getCharPointer(const int index) const
friend class CStringIterator
CNxString & operator=(const CNxString &string)
void remove(const int startIndex)
const int indexOf(nxwidget_char_t letter) const
nxwidget_char_t getChar(void) const
void setText(const CNxString &text)
void allocateMemory(int chars, bool preserve)
FAR const nxwidget_char_t * getCharArray(void) const
const unsigned int getLength(void) const
const nxwidget_char_t getCharAt(int index) const
void copyToCharArray(FAR nxwidget_char_t *buffer) const
CStringIterator * newStringIterator(void) const
FAR nxwidget_char_t * m_text
void insert(const CNxString &text, const int index)
CNxString * subString(int startIndex) const