* Check if the following text is "C" as in extern "C". * * @return whether the statement is extern "C" */
| 2528 | * @return whether the statement is extern "C" |
| 2529 | */ |
| 2530 | bool 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 |
nothing calls this directly
no outgoing calls
no test coverage detected