mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-29 19:25:26 +08:00
batcher and spritefont support utf8 strings
This commit is contained in:
@ -75,6 +75,14 @@ namespace Blah
|
||||
|
||||
// ensures the string has the given capacity
|
||||
void reserve(int capacity);
|
||||
|
||||
// Returns the unicode value at the given index.
|
||||
// Assumes the index is a valid utf8 starting point.
|
||||
uint32_t utf8_at(int index) const;
|
||||
|
||||
// Returns the byte-length of the utf8 character.
|
||||
// Assumes the index is a valid utf8 starting point.
|
||||
int utf8_length(int index) const;
|
||||
|
||||
// appends the given character
|
||||
Str& append(char c);
|
||||
|
Reference in New Issue
Block a user