mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-03 07:08:20 +00:00
gb_internal a lot
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user