I18N
- One does not simply std::string::substr a UTF8 string, like a bloody caveman. Implemented utf8_substr, and added unit tests.
This commit is contained in:
@@ -37,6 +37,7 @@ std::string utf8_character (unsigned int);
|
||||
int utf8_sequence (unsigned int);
|
||||
unsigned int utf8_length (const std::string&);
|
||||
unsigned int utf8_text_length (const std::string&);
|
||||
const std::string utf8_substr (const std::string&, unsigned int, unsigned int length = 0);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user