MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / parseAnyName

Method parseAnyName

src/ast/ast_typedecl.cpp:3851–3859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3849 }
3850
3851 string MangledNameParser::parseAnyName ( const char * & ch, bool allowModule ) {
3852 string name;
3853 while ( isalnum(*ch) || *ch=='_' || *ch=='`' || (*ch==':' && allowModule) || (*ch=='$' && allowModule) ) {
3854 char che[2] = { *ch, 0 };
3855 name.append(che);
3856 ch ++;
3857 }
3858 return name;
3859 }
3860
3861 string MangledNameParser::parseAnyNameInBrackets ( const char * & ch, bool allowModule ) {
3862 if ( *ch!='<' ) error("expecting '<'", ch);

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected