std::ascii moved into std::core::ascii. Old _m variants are deprecated, as is uint methods.

This commit is contained in:
Christoffer Lerno
2025-05-02 18:06:28 +02:00
parent bfccc303d1
commit 8a09b2e5f7
8 changed files with 196 additions and 80 deletions

View File

@@ -1,5 +1,4 @@
module std::core::string;
import std::ascii;
import std::io;
typedef String @if(!$defined(String)) = inline char[];
@@ -787,7 +786,7 @@ macro String.to_integer(self, $Type, int base = 10)
usz len = self.len;
usz index = 0;
char* ptr = self.ptr;
while (index < len && ascii::is_blank_m(ptr[index])) index++;
while (index < len && ptr[index].is_blank()) index++;
if (len == index) return EMPTY_STRING?;
bool is_negative;
switch (self[index])