MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / ReadName

Method ReadName

TinyXml/src/tinyxmlparser.cpp:197–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195#endif
196
197const 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
224const TCHAR* TiXmlBase::GetEntity( const TCHAR* p, TCHAR* value )
225{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected