MCPcopy Create free account
hub / github.com/baidu/tera / IsVisible

Function IsVisible

src/utils/string_util.cc:15–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace tera {
14
15bool IsVisible(char c) {
16 return (c >= 0x21 && c <= 0x7E); // exclude space (0x20)
17}
18
19char IsHex(uint8_t i) {
20 return ((i >= '0' && i <= '9') || (i >= 'a' && i <= 'f') || (i >= 'A' && i <= 'F'));

Callers 2

DebugStringFunction · 0.85
ParseDebugStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected