lib: drop non-Hare extras (ascii.digitval, bytes.copy, fmt.errpos)
ascii.digitval/isidstart/isidpart are lexer-private, not Hare-stdlib. Moved into lib/ww/lex/lex.ww as fn (renamed digitval to hexval since its sole job is the \\xHH escape decoder). bytes.copy and fmt.errpos have no Hare counterpart and no external callers; gone.
This commit is contained in:
@@ -140,14 +140,10 @@ export fn main() i32 = {
|
||||
if (!ascii.isdigit(53)) { return 14; }; // '5'
|
||||
if (ascii.isdigit(65)) { return 15; }; // 'A' is not a digit
|
||||
if (!ascii.isalpha(122)) { return 16; }; // 'z'
|
||||
if (!ascii.isidstart(95)) { return 17; }; // '_'
|
||||
if (!ascii.isidpart(48)) { return 18; }; // '0' is part
|
||||
let dv: (i32 | void) = ascii.digitval(70);
|
||||
match (dv) {
|
||||
case let v: i32 => { if (v != 15) { return 19; }; }; // 'F' = 15
|
||||
case void => { return 19; };
|
||||
};
|
||||
if (ascii.tolower(65) != 97) { return 20; }; // 'A' -> 'a'
|
||||
if (!ascii.isxdigit(70)) { return 17; }; // 'F'
|
||||
if (ascii.isxdigit(71)) { return 18; }; // 'G' is not hex
|
||||
if (ascii.tolower(65) != 97) { return 19; }; // 'A' -> 'a'
|
||||
if (ascii.toupper(122) != 90) { return 20; }; // 'z' -> 'Z'
|
||||
|
||||
// Probe 7 — file open/read via the new os APIs. /proc/self/cmdline
|
||||
// always exists on Linux, no write side, and is non-empty.
|
||||
|
||||
Reference in New Issue
Block a user