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

Method isExternC

astyle/src/ASFormatter.cpp:2530–2543  ·  view source on GitHub ↗

* Check if the following text is "C" as in extern "C". * * @return whether the statement is extern "C" */

Source from the content-addressed store, hash-verified

2528 * @return whether the statement is extern "C"
2529 */
2530bool ASFormatter::isExternC() const
2531{
2532 // charNum should be at 'extern'
2533 assert(!isWhiteSpace(currentLine[charNum]));
2534 size_t startQuote = currentLine.find_first_of(" \t\"", charNum);
2535 if (startQuote == string::npos)
2536 return false;
2537 startQuote = currentLine.find_first_not_of(" \t", startQuote);
2538 if (startQuote == string::npos)
2539 return false;
2540 if (currentLine.compare(startQuote, 3, "\"C\"") != 0)
2541 return false;
2542 return true;
2543}
2544
2545/**
2546 * Check if the currently reached '*', '&' or '^' character is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected