MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / is_digit

Method is_digit

include/stringzilla/stringzilla.hpp:2239–2239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2237 bool is_alnum() const noexcept { return !empty() && contains_only(ascii_letters_set() | digits_set()); }
2238 bool is_ascii() const noexcept { return empty() || contains_only(ascii_controls_set() | ascii_printables_set()); }
2239 bool is_digit() const noexcept { return !empty() && contains_only(digits_set()); }
2240 bool is_lower() const noexcept { return !empty() && contains_only(ascii_lowercase_set()); }
2241 bool is_space() const noexcept { return !empty() && contains_only(whitespaces_set()); }
2242 bool is_upper() const noexcept { return !empty() && contains_only(ascii_uppercase_set()); }

Callers

nothing calls this directly

Calls 1

digits_setFunction · 0.85

Tested by

no test coverage detected