MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / IsAlpha

Method IsAlpha

cpp/tinyxml/tinyxmlparser.cpp:130–148  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected