mirror of
https://github.com/NoelFB/blah.git
synced 2026-11-10 00:35:14 +08:00
batcher and spritefont support utf8 strings
This commit is contained in:
1 parent
3bc36981cb
commit
ecb9da86aa
4 files changed
+114
-28
No files matched your search
@@ -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