Kanzi 3.9.10
text_edit_buffer.hpp File Reference

Classes

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

Namespaces

namespace  kanzi
 

Enumerations

enum class  kanzi::EchoMode { kanzi::Normal , kanzi::NoEcho , kanzi::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.
 
size_t kanzi::getUtf8Length (string_view text)
 Returns the number of UTF-8 characters in the text.
 
size_t kanzi::getUtf8NextWordbreakPosition (string_view text, size_t position)
 Gets the position of the next word break following the character position position.
 
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.
 
size_t kanzi::getUtf8PreviousWordbreakPosition (string_view text, size_t position)
 Gets the position of the previous word break that precedes the character position position.
 
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.
 
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.
 
size_t kanzi::getUtf8WordCount (string_view text)
 Gets the number of words in a UTF-8 text string.
 
bool kanzi::isRTL (string_view text)
 Returns true if the text is right-to-left aligned, otherwise false.
 
string_view kanzi::truncateToUtf8Length (string_view text, size_t length)