MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / TokenIsNumeric

Function TokenIsNumeric

source/script2.cpp:16855–16867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16853
16854
16855SymbolType TokenIsNumeric(ExprTokenType &aToken)
16856{
16857 switch(aToken.symbol)
16858 {
16859 case SYM_INTEGER:
16860 case SYM_FLOAT:
16861 return aToken.symbol;
16862 case SYM_VAR:
16863 return aToken.var->IsNumeric();
16864 default: // SYM_STRING: Callers of this function expect a "numeric" result for numeric strings.
16865 return IsNumeric(aToken.marker, true, false, true);
16866 }
16867}
16868
16869
16870SymbolType TokenIsPureNumeric(ExprTokenType &aToken)

Callers 9

ControlSetContentsMethod · 0.85
ParamToZeroIndexMethod · 0.85
EvaluateSwitchCaseMethod · 0.85
BIF_DECLFunction · 0.85
TokenToToggleValueFunction · 0.85
BIF_DECLFunction · 0.85
SafeArrayItemMethod · 0.85
BIF_DECLFunction · 0.85
ConvertFileEncodingMethod · 0.85

Calls 2

IsNumericFunction · 0.85
IsNumericMethod · 0.80

Tested by

no test coverage detected