|
Fcitx
|
A class represents a formatted string. More...
#include <fcitx/text.h>
Public Member Functions | |
| Text (std::string text, TextFormatFlags flag=TextFormatFlag::NoFlag) | |
| FCITX_DECLARE_VIRTUAL_DTOR_COPY_AND_MOVE (Text) | |
| int | cursor () const |
| Get cursor by byte. | |
| void | setCursor (int pos=-1) |
| Set cursor by byte. | |
| void | clear () |
| void | append (std::string str, TextFormatFlags flag=TextFormatFlag::NoFlag) |
| void | append (Text text) |
| Append another text. More... | |
| const std::string & | stringAt (int idx) const |
| TextFormatFlags | formatAt (int idx) const |
| size_t | size () const |
| bool | empty () const |
| size_t | textLength () const |
| std::string | toString () const |
| std::string | toStringForCommit () const |
| Text | normalize () const |
| Remove empty string piece and merge the string with same format. More... | |
| std::vector< Text > | splitByLine () const |
| Split Text object into lines. More... | |
1.8.13