MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / validate

Function validate

example/cacheHierarchy/fkYAML/node.hpp:1867–1870  ·  view source on GitHub ↗

@brief Checks if `byte` is a valid 1-byte UTF-8 character. @param[in] byte The byte value. @return true if `byte` is a valid 1-byte UTF-8 character, false otherwise.

Source from the content-addressed store, hash-verified

1865/// @param[in] byte The byte value.
1866/// @return true if `byte` is a valid 1-byte UTF-8 character, false otherwise.
1867inline bool validate(uint8_t byte) noexcept {
1868 // U+0000..U+007F
1869 return byte <= 0x7Fu;
1870}
1871
1872/// @brief Checks if the given bytes are a valid 2-byte UTF-8 character.
1873/// @param[in] byte0 The first byte value.

Callers 6

scan_tag_directiveMethod · 0.85
extract_tag_nameMethod · 0.85
get_buffer_view_utf8Method · 0.85
get_buffer_viewMethod · 0.85
get_buffer_view_utf8Method · 0.85
get_buffer_view_utf8Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected