diff options
| author | Ray <[email protected]> | 2019-10-11 20:12:15 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-10-11 20:12:15 +0200 |
| commit | e0cb892d2d2d9d1c95f5f0622f1f8237ee843f45 (patch) | |
| tree | e0b26df081db3d313510458cef0e79c700a7483f /src/raylib.h | |
| parent | 12d3e21f1bfa66f3aca334bcb01da9b52f96b089 (diff) | |
| download | raylib-e0cb892d2d2d9d1c95f5f0622f1f8237ee843f45.tar.gz raylib-e0cb892d2d2d9d1c95f5f0622f1f8237ee843f45.zip | |
ADDED: GetCodepoints()
Get the unicode equivalent characters (as int array) from a UTF-8 text array... maybe this function is renamed to be clearer to users...
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h index be5bcaf0..11587e2e 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1188,8 +1188,8 @@ RLAPI void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontS RLAPI int MeasureText(const char *text, int fontSize); // Measure string width for default font RLAPI Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // Measure string size for Font RLAPI int GetGlyphIndex(Font font, int character); // Get index position for a unicode character on font -RLAPI int GetNextCodepoint(const char *text, int *bytesProcessed); // Returns next codepoint in a UTF8 encoded string - // NOTE: 0x3f('?') is returned on failure +RLAPI int GetNextCodepoint(const char *text, int *bytesProcessed); // Returns next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure +RLAPI int *GetCodepoints(const char *text, int *count); // Get all codepoints in a string, codepoints count returned by parameters // Text strings management functions // NOTE: Some strings allocate memory internally for returned strings, just be careful! |
