mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
i18n
- Added function utf8_text_length which calculates the length of text in characters, not bytes, and excludes color control codes.
This commit is contained in:
parent
46b799a5b7
commit
291818c33d
3 changed files with 42 additions and 3 deletions
|
@ -34,6 +34,7 @@ unsigned int utf8_next_char (const std::string&, std::string::size_type&);
|
|||
std::string utf8_character (unsigned int);
|
||||
int utf8_sequence (unsigned int);
|
||||
int utf8_length (const std::string&);
|
||||
int utf8_text_length (const std::string&);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue