- Added more UTF8 unit tests for calculating string length, string width,
  formatted string length, formatted string width.
- Implemented UTF8 text width method for symmetry.
This commit is contained in:
Paul Beckingham 2013-03-02 18:14:56 -05:00
parent 551b4dbe90
commit 914447c885
3 changed files with 55 additions and 19 deletions

View file

@ -38,6 +38,7 @@ int utf8_sequence (unsigned int);
unsigned int utf8_length (const std::string&);
unsigned int utf8_text_length (const std::string&);
unsigned int utf8_width (const std::string& str);
unsigned int utf8_text_width (const std::string&);
const std::string utf8_substr (const std::string&, unsigned int, unsigned int length = 0);