MCPcopy Create free account
hub / github.com/davidblewett/rure-python / is_hex

Function is_hex

regex/regex-syntax/src/ast/parse.rs:104–106  ·  view source on GitHub ↗

Returns true if the given character is a hexadecimal digit.

(c: char)

Source from the content-addressed store, hash-verified

102
103/// Returns true if the given character is a hexadecimal digit.
104fn is_hex(c: char) -> bool {
105 ('0' <= c && c <= '9') || ('a' <= c && c <= 'f') || ('A' <= c && c <= 'F')
106}
107
108/// Returns true if the given character is a valid in a capture group name.
109///

Callers 2

parse_hex_digitsMethod · 0.85
parse_hex_braceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected