Om
1.0.0
A universal framework for multimedia simulation
|
A class that iterates over UTF-8 encoded character strings. More...
#include <omStringIterator.h>
Public Member Functions | |
GenericStringIterator (const UTF8Char *string) | |
Create a string iterator that iterates over the specified NULL-terminated string. More... | |
GenericStringIterator (const UTF8Char *string, Size length) | |
Create a string iterator that iterates over the specified string. More... | |
GenericStringIterator (const GenericString< UTF8Char > &string) | |
Create a string iterator that iterates over the specified string object. More... | |
void | operator++ () |
Increment the iterator to the next character in the string. More... | |
void | operator++ (int) |
Increment the iterator to the next character in the string. More... | |
operator Bool () const | |
Return whether or not the end of the string has been reached. More... | |
Index | getIndex () const |
Return the current code point index within the string being iterated over. More... | |
Index | getCharacterIndex () const |
Return the index of the next character in the string. More... | |
UTF32Char | operator* () const |
Return the current character of the iterator. More... | |
operator const UTF8Char * () const | |
Return a pointer to the current character of the iterator. More... | |
void | reset () |
Reset the iterator to the first character in the string it is iterating over. More... | |
A class that iterates over UTF-8 encoded character strings.
|
inline |
Create a string iterator that iterates over the specified NULL-terminated string.
|
inline |
Create a string iterator that iterates over the specified string.
|
inline |
Create a string iterator that iterates over the specified string object.
|
inline |
Increment the iterator to the next character in the string.
|
inline |
Increment the iterator to the next character in the string.
|
inline |
Return whether or not the end of the string has been reached.
|
inline |
Return the current code point index within the string being iterated over.
|
inline |
Return the index of the next character in the string.
This is not the same as the code point index because there may be characters which use more than one code point in their representation.
|
inline |
Return the current character of the iterator.
|
inline |
Return a pointer to the current character of the iterator.
|
inline |
Reset the iterator to the first character in the string it is iterating over.