summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-02-05 16:30:23 +0100
committerRay <[email protected]>2023-02-05 16:30:23 +0100
commit1fea26647214308774c4630d10883f42d608fa9d (patch)
treee6d81a0288a28bc3acd713c3e4596a2e0811a41c /src/rtext.c
parentc91190fc6e9355f58c15a0a17990ca9b450aaf5d (diff)
downloadraylib-1fea26647214308774c4630d10883f42d608fa9d.tar.gz
raylib-1fea26647214308774c4630d10883f42d608fa9d.zip
Clean trailing spaces
Diffstat (limited to 'src/rtext.c')
-rw-r--r--src/rtext.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rtext.c b/src/rtext.c
index 9908b44d..52fc615d 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -1869,7 +1869,7 @@ int GetCodepointNext(const char *text, int *codepointSize)
const char *ptr = text;
int codepoint = 0x3f; // Codepoint (defaults to '?')
*codepointSize = 0;
-
+
// Get current codepoint and bytes processed
if (0xf0 == (0xf8 & ptr[0]))
{
@@ -1882,20 +1882,20 @@ int GetCodepointNext(const char *text, int *codepointSize)
// 3 byte UTF-8 codepoint */
codepoint = ((0x0f & ptr[0]) << 12) | ((0x3f & ptr[1]) << 6) | (0x3f & ptr[2]);
*codepointSize = 3;
- }
+ }
else if (0xc0 == (0xe0 & ptr[0]))
{
// 2 byte UTF-8 codepoint
codepoint = ((0x1f & ptr[0]) << 6) | (0x3f & ptr[1]);
*codepointSize = 2;
- }
+ }
else
{
// 1 byte UTF-8 codepoint
codepoint = ptr[0];
*codepointSize = 1;
}
-
+
return codepoint;
}
@@ -1910,7 +1910,7 @@ int GetCodepointPrevious(const char *text, int *codepointSize)
// Move to previous codepoint
do ptr--;
while (((0x80 & ptr[0]) != 0) && ((0xc0 & ptr[0]) == 0x80));
-
+
codepoint = GetCodepointNext(ptr, &cpSize);
if (codepoint != 0) *codepointSize = cpSize;