Class containing some basic functions for simple tokenising of C++ code. More...
Classes | |
| struct | StringIterator |
| A class that can be passed to the CppTokeniserFunctions functions in order to parse a String. More... | |
Class containing some basic functions for simple tokenising of C++ code.
|
inlinestaticnoexcept |
References juce::CharacterFunctions::isLetter().
Referenced by readNextToken().
|
inlinestaticnoexcept |
References juce::CharacterFunctions::isLetterOrDigit().
Referenced by parseIdentifier().
|
inlinestaticnoexcept |
Referenced by parseIdentifier().
|
inlinestatic |
References juce::CharacterFunctions::isLetterOrDigit(), and juce::source.
Referenced by parseDecimalLiteral(), parseHexLiteral(), and parseOctalLiteral().
|
inlinestaticnoexcept |
Referenced by parseHexLiteral().
|
inlinestaticnoexcept |
References isHexDigit(), skipNumberSuffix(), and juce::source.
Referenced by parseNumber().
|
inlinestaticnoexcept |
Referenced by parseOctalLiteral().
|
inlinestaticnoexcept |
References isOctalDigit(), skipNumberSuffix(), and juce::source.
Referenced by parseNumber().
|
inlinestaticnoexcept |
Referenced by parseDecimalLiteral(), and parseFloatLiteral().
|
inlinestaticnoexcept |
References isDecimalDigit(), skipNumberSuffix(), and juce::source.
Referenced by parseNumber().
|
inlinestaticnoexcept |
References isDecimalDigit(), and juce::source.
Referenced by parseNumber().
|
inlinestaticnoexcept |
References juce::source.
Referenced by readNextToken(), and skipPreprocessorLine().
|
inlinestaticnoexcept |
References juce::source.
Referenced by readNextToken().
|
inlinestaticnoexcept |
References skipPreprocessorLine(), skipQuotedString(), and juce::source.
Referenced by readNextToken(), and skipPreprocessorLine().
|
inlinestaticnoexcept |
References juce::source.
Referenced by readNextToken().
|
inlinestaticnoexcept |
References juce::source.
|
inlinestatic |
References isIdentifierStart(), parseIdentifier(), parseNumber(), skipComment(), skipIfNextCharMatches(), skipPreprocessorLine(), skipQuotedString(), juce::source, juce::CPlusPlusCodeTokeniser::tokenType_bracket, juce::CPlusPlusCodeTokeniser::tokenType_comment, juce::CPlusPlusCodeTokeniser::tokenType_error, juce::CPlusPlusCodeTokeniser::tokenType_operator, juce::CPlusPlusCodeTokeniser::tokenType_preprocessor, juce::CPlusPlusCodeTokeniser::tokenType_punctuation, and juce::CPlusPlusCodeTokeniser::tokenType_string.
|
inlinestatic |
Takes a UTF8 string and writes it to a stream using standard C++ escape sequences for any non-ascii bytes.
Although not strictly a tokenising function, this is still a function that often comes in handy when working with C++ code!
Note that addEscapeChars() is easier to use than this function if you're working with Strings.
References juce::CharacterFunctions::getHexDigitValue(), JUCE_FALLTHROUGH, juce::newLine, and juce::String::toHexString().
Referenced by addEscapeChars().
Takes a string and returns a version of it where standard C++ escape sequences have been used to replace any non-ascii bytes.
Although not strictly a tokenising function, this is still a function that often comes in handy when working with C++ code!
References juce::String::toRawUTF8(), and writeEscapeChars().