aboutsummaryrefslogtreecommitdiff
path: root/src/unicode.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-12-18 21:17:07 +0000
committergingerBill <bill@gingerbill.org>2022-12-18 21:17:07 +0000
commitac5f5a33e94054396de66a37043e226349b6c91c (patch)
tree3b561345c4542112da67b9139c3ff6cf54cf7219 /src/unicode.cpp
parentff6b76986a0647ffc7d99c7e7df78ec8e5fb91b2 (diff)
`gb_internal` a lot
Diffstat (limited to 'src/unicode.cpp')
-rw-r--r--src/unicode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unicode.cpp b/src/unicode.cpp
index e33fb793b..c244a323c 100644
--- a/src/unicode.cpp
+++ b/src/unicode.cpp
@@ -7,7 +7,7 @@ extern "C" {
#pragma warning(pop)
-bool rune_is_letter(Rune r) {
+gb_internal bool rune_is_letter(Rune r) {
if (r < 0x80) {
if (r == '_') {
return true;
@@ -25,14 +25,14 @@ bool rune_is_letter(Rune r) {
return false;
}
-bool rune_is_digit(Rune r) {
+gb_internal bool rune_is_digit(Rune r) {
if (r < 0x80) {
return (cast(u32)r - '0') < 10;
}
return utf8proc_category(r) == UTF8PROC_CATEGORY_ND;
}
-bool rune_is_letter_or_digit(Rune r) {
+gb_internal bool rune_is_letter_or_digit(Rune r) {
if (r < 0x80) {
if (r == '_') {
return true;
@@ -55,7 +55,7 @@ bool rune_is_letter_or_digit(Rune r) {
return false;
}
-bool rune_is_whitespace(Rune r) {
+gb_internal bool rune_is_whitespace(Rune r) {
switch (r) {
case ' ':
case '\t':
@@ -99,7 +99,7 @@ gb_global Utf8AcceptRange const global__utf8_accept_ranges[] = {
};
-isize utf8_decode(u8 const *str, isize str_len, Rune *codepoint_out) {
+gb_internal isize utf8_decode(u8 const *str, isize str_len, Rune *codepoint_out) {
isize width = 0;
Rune codepoint = GB_RUNE_INVALID;