|
| const EscapeSequenceMap & | sourcepp::parser::text::getDefaultEscapeSequences () |
| const EscapeSequenceMap & | sourcepp::parser::text::getDefaultEscapeSequencesOrNone (bool useEscapes) |
| std::string | sourcepp::parser::text::convertSpecialCharsToEscapes (std::string_view str, const EscapeSequenceMap &escapeSequences) |
| | Convert special characters like \n to escaped special characters like \\n.
|
| std::string | sourcepp::parser::text::convertEscapesToSpecialChars (std::string_view str, const EscapeSequenceMap &escapeSequences) |
| | Convert escaped special characters like \\n to special characters like \n.
|
| void | sourcepp::parser::text::eatWhitespace (BufferStream &stream) |
| | Eat all whitespace after the current stream position.
|
| void | sourcepp::parser::text::eatSingleLineComment (BufferStream &stream) |
| | If a single line comment is detected, eat its contents.
|
| void | sourcepp::parser::text::eatMultiLineComment (BufferStream &stream, std::string_view multiLineCommentEnd=DEFAULT_MULTI_LINE_COMMENT_END) |
| | If a multi line comment is detected, eat its contents.
|
| void | sourcepp::parser::text::eatWhitespaceAndSingleLineComments (BufferStream &stream, std::string_view singleLineCommentStart=DEFAULT_SINGLE_LINE_COMMENT_START) |
| | Eat all whitespace and single line comments after the current stream position.
|
| void | sourcepp::parser::text::eatWhitespaceAndMultiLineComments (BufferStream &stream, std::string_view multiLineCommentStart=DEFAULT_MULTI_LINE_COMMENT_START) |
| | Eat all whitespace and multi line comments after the current stream position.
|
| void | sourcepp::parser::text::eatWhitespaceAndComments (BufferStream &stream, std::string_view singleLineCommentStart=DEFAULT_SINGLE_LINE_COMMENT_START, std::string_view multiLineCommentStart=DEFAULT_MULTI_LINE_COMMENT_START) |
| | Eat all whitespace and comments after the current stream position.
|
| bool | sourcepp::parser::text::tryToEatChar (BufferStream &stream, char c) |
| | If the given char exists at the current position, skip over it.
|
| std::string | sourcepp::parser::text::readString (BufferStream &stream, std::initializer_list< std::pair< char, char > > quotes={DEFAULT_QUOTES}, const EscapeSequenceMap &escapeSequences=getDefaultEscapeSequences()) |
| | Read a string starting at the current stream position.
|
| std::string_view | sourcepp::parser::text::readStringToBuffer (BufferStream &stream, BufferStream &backing, std::initializer_list< std::pair< char, char > > quotes={DEFAULT_QUOTES}, const EscapeSequenceMap &escapeSequences=getDefaultEscapeSequences()) |
| | Read a string starting at the current stream position.
|
| std::string | sourcepp::parser::text::readUnquotedString (BufferStream &stream, const EscapeSequenceMap &escapeSequences=getDefaultEscapeSequences()) |
| | Read a string starting at the current stream position.
|
| std::string_view | sourcepp::parser::text::readUnquotedStringToBuffer (BufferStream &stream, BufferStream &backing, const EscapeSequenceMap &escapeSequences=getDefaultEscapeSequences()) |
| | Read a string starting at the current stream position.
|
| std::string | sourcepp::parser::text::readUnquotedString (BufferStream &stream, std::string_view end, const EscapeSequenceMap &escapeSequences=getDefaultEscapeSequences()) |
| | Read a string starting at the current stream position.
|
| std::string_view | sourcepp::parser::text::readUnquotedStringToBuffer (BufferStream &stream, BufferStream &backing, std::string_view end, const EscapeSequenceMap &escapeSequences=getDefaultEscapeSequences()) |
| | Read a string starting at the current stream position.
|