Kanzi  3.9.5
Kanzi Engine API
text_edit_buffer.hpp File Reference

Classes

class  kanzi::TextEditBuffer
 TextEditBuffer is a model for text input. More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Enumerations

enum  kanzi::EchoMode { kanzi::EchoMode::Normal, kanzi::EchoMode::NoEcho, kanzi::EchoMode::Password }
 Echo modes that specify how to format the display text in a TextEditBuffer. More...
 

Functions

vector< size_t > kanzi::getGraphemeClusters (string_view text)
 Returns the indices of the characters that start new grapheme clusters in the given text. More...
 
size_t kanzi::getUtf8Length (string_view text)
 Returns the number of UTF-8 characters in the text. More...
 
size_t kanzi::getUtf8NextWordbreakPosition (string_view text, size_t position)
 Gets the position of the next word break following the character position position. More...
 
size_t kanzi::getUtf8NextWordbreakPosition (string_view text, size_t position, size_t words)
 Gets the position of the next word break following the character position position after the number of words words. More...
 
size_t kanzi::getUtf8PreviousWordbreakPosition (string_view text, size_t position)
 Gets the position of the previous word break that precedes the character position position. More...
 
size_t kanzi::getUtf8PreviousWordbreakPosition (string_view text, size_t position, size_t words)
 Gets the position of the next word break following the character position position after the number of words words. More...
 
pair< size_t, size_t > kanzi::getUtf8WordBounds (string_view text, size_t position)
 Gets the character positions at the begin and end of the word to which the character at position position belongs. More...
 
size_t kanzi::getUtf8WordCount (string_view text)
 Gets the number of words in a UTF-8 text string. More...
 
bool kanzi::isRTL (string_view text)
 Returns true if the text is right-to-left aligned, otherwise false. More...
 
string_view kanzi::truncateToUtf8Length (string_view text, size_t length)