| 217 | |
| 218 | |
| 219 | char* StrPair::ParseName( char* p ) |
| 220 | { |
| 221 | if ( !p || !(*p) ) { |
| 222 | return 0; |
| 223 | } |
| 224 | if ( !XMLUtil::IsNameStartChar( *p ) ) { |
| 225 | return 0; |
| 226 | } |
| 227 | |
| 228 | char* const start = p; |
| 229 | ++p; |
| 230 | while ( *p && XMLUtil::IsNameChar( *p ) ) { |
| 231 | ++p; |
| 232 | } |
| 233 | |
| 234 | Set( start, p, 0 ); |
| 235 | return p; |
| 236 | } |
| 237 | |
| 238 | |
| 239 | void StrPair::CollapseWhitespace() |
no test coverage detected