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

Method IsAlpha

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

static*/

Source from the content-addressed store, hash-verified

127
128
129/*static*/ int TiXmlBase::IsAlpha( unsigned char anyByte, TiXmlEncoding /*encoding*/ )
130{
131 // This will only work for low-ascii, everything else is assumed to be a valid
132 // letter. I'm not sure this is the best approach, but it is quite tricky trying
133 // to figure out alhabetical vs. not across encoding. So take a very
134 // conservative approach.
135
136// if ( encoding == TIXML_ENCODING_UTF8 )
137// {
138 if ( anyByte < 127 )
139 return isalpha( anyByte );
140 else
141 return 1; // What else to do? The unicode set is huge...get the english ones right.
142// }
143// else
144// {
145// return isalpha( anyByte );
146// }
147}
148
149
150/*static*/ int TiXmlBase::IsAlphaNum( unsigned char anyByte, TiXmlEncoding /*encoding*/ )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected