- 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:
Paul Beckingham 2011-05-13 18:01:02 -04:00
parent 46b799a5b7
commit 291818c33d
3 changed files with 42 additions and 3 deletions

View file

@ -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