KUIML
Blue Cat's User Interface Programming Language
utf8::iterator Class Reference

(Experimental) utf-8 iterator. Provides methods to navigate in unicode strings (all strings in KUIML are using utf-8 encoding).

Public Member Functions

 iterator (const string &iString)
 
 iterator (const iterator &iter)
 
void operator= (const iterator &iIter)
 
string first ()
 positions the iterator at the first character in string and returns it (or empty)
 
string last ()
 positions the iterator at the last character in string and returns it (or empty)
 
string next (uint count)
 moves to the next character in string and returns it (or empty)
 
string previous (uint count)
 moves to previous character in string and returns it (or empty)
 
int index ()
 returns the current position in the string (in bytes, NOT characters)