diff --git a/lib/std/ascii.zig b/lib/std/ascii.zig index 663f7df94f8c181b7a1f1872e07eab7410c700fe..a795ac9913ea8be62b7410afc3881f6b44a0054f 100644 --- a/lib/std/ascii.zig +++ b/lib/std/ascii.zig @@ -239,6 +239,7 @@ pub fn isDigit(c: u8) bool { return inTable(c, tIndex.Digit); } +/// DEPRECATED: use `isPrint(c) and c != ' '` instead pub fn isGraph(c: u8) bool { return inTable(c, tIndex.Graph); } @@ -285,6 +286,7 @@ pub fn isASCII(c: u8) bool { return c < 128; } +/// DEPRECATED: use `c == ' ' or c == '\x09'` or try `isWhitespace` pub fn isBlank(c: u8) bool { return (c == ' ') or (c == '\x09'); }