MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / is_identifier_char

Method is_identifier_char

src/mdebug.cpp:119–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 bool is_identifier_char(char c) {
120 if (c >= 'a' && c <= 'z') {
121 return true;
122 }
123 if (c >= 'A' && c <= 'Z') {
124 return true;
125 }
126 if (c == '_') {
127 return true;
128 }
129 if (c >= '0' && c <= '9') {
130 return true;
131 }
132 return false;
133 }
134
135 std::string sanitize_section_name(std::string section_name) {
136 // Skip periods at the start of the section name.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected