mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove unneeded semicolons from the core library
This commit is contained in:
@@ -3,20 +3,20 @@ package strings
|
||||
|
||||
import "core:unicode/utf8"
|
||||
|
||||
Ascii_Set :: distinct [8]u32;
|
||||
Ascii_Set :: distinct [8]u32
|
||||
|
||||
ascii_set_make :: proc(chars: string) -> (as: Ascii_Set, ok: bool) #no_bounds_check {
|
||||
for i in 0..<len(chars) {
|
||||
c := chars[i];
|
||||
c := chars[i]
|
||||
if c >= utf8.RUNE_SELF {
|
||||
return;
|
||||
return
|
||||
}
|
||||
as[c>>5] |= 1 << uint(c&31);
|
||||
as[c>>5] |= 1 << uint(c&31)
|
||||
}
|
||||
ok = true;
|
||||
return;
|
||||
ok = true
|
||||
return
|
||||
}
|
||||
|
||||
ascii_set_contains :: proc(as: Ascii_Set, c: byte) -> bool #no_bounds_check {
|
||||
return as[c>>5] & (1<<(c&31)) != 0;
|
||||
return as[c>>5] & (1<<(c&31)) != 0
|
||||
}
|
||||
Reference in New Issue
Block a user