MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / isParamOption

Method isParamOption

astyle/src/astyle_main.cpp:1260–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258}
1259
1260bool ASConsole::isParamOption(const string &arg, const char* option)
1261{
1262 bool retVal = arg.compare(0, strlen(option), option) == 0;
1263 // if comparing for short option, 2nd char of arg must be numeric
1264 if (retVal && strlen(option) == 1 && arg.length() > 1)
1265 if (!isdigit((unsigned char)arg[1]))
1266 retVal = false;
1267 return retVal;
1268}
1269
1270// compare a path to the exclude vector
1271// used for both directories and filenames

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected