| 195 | #endif |
| 196 | |
| 197 | const TCHAR* TiXmlBase::ReadName( const TCHAR* p, TIXML_STRING * name ) |
| 198 | { |
| 199 | *name = TEXT(""); |
| 200 | assert( p ); |
| 201 | |
| 202 | // Names start with letters or underscores. |
| 203 | // After that, they can be letters, underscores, numbers, |
| 204 | // hyphens, or colons. (Colons are valid ony for namespaces, |
| 205 | // but tinyxml can't tell namespaces from names.) |
| 206 | if ( p && *p |
| 207 | && ( isalpha( (UCHAR) *p ) || *p == '_' ) ) |
| 208 | { |
| 209 | while( p && *p |
| 210 | && ( isalnum( (UCHAR ) *p ) |
| 211 | || *p == '_' |
| 212 | || *p == '-' |
| 213 | || *p == '.' |
| 214 | || *p == ':' ) ) |
| 215 | { |
| 216 | (*name) += *p; |
| 217 | ++p; |
| 218 | } |
| 219 | return p; |
| 220 | } |
| 221 | return 0; |
| 222 | } |
| 223 | |
| 224 | const TCHAR* TiXmlBase::GetEntity( const TCHAR* p, TCHAR* value ) |
| 225 | { |
nothing calls this directly
no outgoing calls
no test coverage detected