7#ifndef MYGUI_TEXT_ITERATOR_H_
8#define MYGUI_TEXT_ITERATOR_H_
29 bool getTagColour(
UString& _colour)
const;
32 void clearTagColour();
34 bool setTagColour(
const Colour& _colour);
36 bool setTagColour(
const UString& _colour);
39 bool saveStartPoint();
45 bool eraseFromStart();
48 size_t getPosition()
const;
52 void insertText(
const UString& _insert,
bool _multiLine);
54 void clearNewLine(
UString& _text);
60 size_t getSize()
const;
62 void setText(
const UString& _text,
bool _multiLine);
64 void cutMaxLength(
size_t _max);
66 void cutMaxLengthFromBeginning(
size_t _max);
71 static UString getTextNewLine();
81 bool getTagColour(
UString& _colour, UString::utf32string::iterator& _iter)
const;
87 UString::utf32string::iterator erase(UString::utf32string::iterator _start, UString::utf32string::iterator _end);
91 void normaliseNewLine(
UString& _text);
95 UString::utf32string::iterator mCurrent, mEnd, mSave;
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
std::basic_string< unicode_char > utf32string
string type used for returning UTF-32 formatted data
std::vector< TextCommandInfo > VectorChangeInfo