std.ascii
The entries of std.ascii in the Zig reference. This page has 73 cards.
pub fn allocLowerString(allocator: std.mem.Allocator, ascii_string: []const u8) ![]u8
Allocates a lower case copy of `ascii_string`.
- Kind
- function
- Module
std.ascii
pub fn allocUpperString(allocator: std.mem.Allocator, ascii_string: []const u8) ![]u8
Allocates an upper case copy of `ascii_string`.
- Kind
- function
- Module
std.ascii
pub fn boundedOrderIgnoreCaseZ(lhs: [*:0]const u8, rhs: [*:0]const u8, bound: usize) std.math.Order
Returns the lexicographical order of two many-item pointers with NUL-termination until some specified bound.
- Kind
- function
- Module
std.ascii
The C0 control codes of the ASCII encoding.
- Kind
- struct
- Module
std.ascii
Acknowledge.
- Kind
- constant
- Module
std.ascii
Bell, Alert.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
Carriage Return ('\r').
- Kind
- constant
- Module
std.ascii
Device Control One (XON).
- Kind
- constant
- Module
std.ascii
Device Control Two.
- Kind
- constant
- Module
std.ascii
Device Control Three (XOFF).
- Kind
- constant
- Module
std.ascii
Device Control Four.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
Data Link Escape.
- Kind
- constant
- Module
std.ascii
End of Medium.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
End of Transmission.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
End of Transmission Block.
- Kind
- constant
- Module
std.ascii
End of Text.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
File Separator.
- Kind
- constant
- Module
std.ascii
Group Separator.
- Kind
- constant
- Module
std.ascii
Horizontal Tab, Tab ('\t').
- Kind
- constant
- Module
std.ascii
Line Feed, Newline ('\n').
- Kind
- constant
- Module
std.ascii
Negative Acknowledge.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
Record Separator.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
Start of Heading.
- Kind
- constant
- Module
std.ascii
Start of Text.
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
Synchronous Idle.
- Kind
- constant
- Module
std.ascii
Unit Separator.
- Kind
- constant
- Module
std.ascii
Vertical Tab.
- Kind
- constant
- Module
std.ascii
An alias to `dc3`.
- Kind
- constant
- Module
std.ascii
An alias to `dc1`.
- Kind
- constant
- Module
std.ascii
pub fn endsWithIgnoreCase(haystack: []const u8, needle: []const u8) bool
- Kind
- function
- Module
std.ascii
pub fn eqlIgnoreCase(a: []const u8, b: []const u8) bool
Compares strings `a` and `b` case-insensitively and returns whether they are equal.
- Kind
- function
- Module
std.ascii
pub fn findIgnoreCase(haystack: []const u8, needle: []const u8) ?usize
Finds `needle` in `haystack`, ignoring case, starting at index 0.
- Kind
- function
- Module
std.ascii
pub fn findIgnoreCasePos(haystack: []const u8, start_index: usize, needle: []const u8) ?usize
Finds `needle` in `haystack`, ignoring case, starting at `start_index`.
- Kind
- function
- Module
std.ascii
pub fn findIgnoreCasePosLinear(haystack: []const u8, start_index: usize, needle: []const u8) ?usize
Consider using `findIgnoreCasePos` instead of this, which will automatically use a more sophisticated algorithm on larger inputs.
- Kind
- function
- Module
std.ascii
- Kind
- struct
- Module
std.ascii
pub fn hexEscape(bytes: []const u8, case: std.fmt.Case) HexEscape
Replaces non-ASCII bytes with hex escapes.
- Kind
- function
- Module
std.ascii
pub fn format(se: HexEscape, w: *std.Io.Writer) std.Io.Writer.Error!void
- Kind
- function
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
pub fn isAlphabetic(c: u8) bool
Returns whether the character is alphabetic: A-Z or a-z.
- Kind
- function
- Module
std.ascii
pub fn isAlphanumeric(c: u8) bool
Returns whether the character is alphanumeric: A-Z, a-z, or 0-9.
- Kind
- function
- Module
std.ascii
pub fn isAscii(c: u8) bool
Returns whether the character is a 7-bit ASCII character.
- Kind
- function
- Module
std.ascii
pub fn isControl(c: u8) bool
Returns whether the character is a control character.
- Kind
- function
- Module
std.ascii
pub fn isDigit(c: u8) bool
Returns whether the character is a digit.
- Kind
- function
- Module
std.ascii
pub fn isGraphical(c: u8) bool
Returns whether the character has some graphical representation,.
- Kind
- function
- Module
std.ascii
pub fn isHex(c: u8) bool
Returns whether the character is a hexadecimal digit: A-F, a-f, or 0-9.
- Kind
- function
- Module
std.ascii
pub fn isLower(c: u8) bool
Returns whether the character is a lowercase letter.
- Kind
- function
- Module
std.ascii
pub fn isPrint(c: u8) bool
Returns whether the character is printable and has some graphical representation, including the space character.
- Kind
- function
- Module
std.ascii
pub fn isPunctuation(c: u8) bool
Returns whether the character is a punctuation character.
- Kind
- function
- Module
std.ascii
pub fn isUpper(c: u8) bool
Returns whether the character is an uppercase letter.
- Kind
- function
- Module
std.ascii
pub fn isWhitespace(c: u8) bool
Returns whether this character is included in `whitespace`.
- Kind
- function
- Module
std.ascii
pub fn lessThanIgnoreCase(lhs: []const u8, rhs: []const u8) bool
Returns whether the lexicographical order of `lhs` is lower than `rhs`.
- Kind
- function
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
pub fn lowerString(output: []u8, ascii_string: []const u8) []u8
Writes a lower case copy of `ascii_string` to `output`.
- Kind
- function
- Module
std.ascii
pub fn orderIgnoreCase(lhs: []const u8, rhs: []const u8) std.math.Order
Returns the lexicographical order of two slices.
- Kind
- function
- Module
std.ascii
pub fn orderIgnoreCaseZ(lhs: [*:0]const u8, rhs: [*:0]const u8) std.math.Order
Returns the lexicographical order of two many-item pointers with NUL-termination.
- Kind
- function
- Module
std.ascii
pub fn startsWithIgnoreCase(haystack: []const u8, needle: []const u8) bool
- Kind
- function
- Module
std.ascii
pub fn toLower(c: u8) u8
Lowercases the character and returns it as-is if already lowercase or not a letter.
- Kind
- function
- Module
std.ascii
pub fn toUpper(c: u8) u8
Uppercases the character and returns it as-is if already uppercase or not a letter.
- Kind
- function
- Module
std.ascii
- Kind
- constant
- Module
std.ascii
pub fn upperString(output: []u8, ascii_string: []const u8) []u8
Writes an upper case copy of `ascii_string` to `output`.
- Kind
- function
- Module
std.ascii
Whitespace for general use.
- Kind
- constant
- Module
std.ascii