MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / FindTokenOrAlphaNumeric

Function FindTokenOrAlphaNumeric

source/Debugger/Debugger_Parser.cpp:844–866  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

842
843//===========================================================================
844const char * FindTokenOrAlphaNumeric ( const char *pSrc, const TokenTable_t *aTokens, const int nTokens, ArgToken_e * pToken_ )
845{
846 if ( pToken_ )
847 *pToken_ = NO_TOKEN;
848
849 const char *pEnd = pSrc;
850
851 if (pSrc && (*pSrc))
852 {
853 if (isalnum( *pSrc ))
854 {
855 if (pToken_)
856 *pToken_ = TOKEN_ALPHANUMERIC;
857 }
858 else
859 {
860 pEnd = ParserFindToken( pSrc, aTokens, nTokens, pToken_ );
861 if (! pEnd)
862 pEnd = pSrc;
863 }
864 }
865 return pEnd;
866}
867
868
869//===========================================================================

Callers 1

ArgsGetFunction · 0.85

Calls 1

ParserFindTokenFunction · 0.85

Tested by

no test coverage detected