MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / IsAlphaNum

Method IsAlphaNum

lesson7-Detection/src/utils/tinyxmlparser.cpp:150–168  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

148
149
150/*static*/ int TiXmlBase::IsAlphaNum( unsigned char anyByte, TiXmlEncoding /*encoding*/ )
151{
152 // This will only work for low-ascii, everything else is assumed to be a valid
153 // letter. I'm not sure this is the best approach, but it is quite tricky trying
154 // to figure out alhabetical vs. not across encoding. So take a very
155 // conservative approach.
156
157// if ( encoding == TIXML_ENCODING_UTF8 )
158// {
159 if ( anyByte < 127 )
160 return isalnum( anyByte );
161 else
162 return 1; // What else to do? The unicode set is huge...get the english ones right.
163// }
164// else
165// {
166// return isalnum( anyByte );
167// }
168}
169
170
171class TiXmlParsingData

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected