dparse.strings

Utility for unescaping D string literals of any kind

Members

Enums

InvalidEscapeAction
enum InvalidEscapeAction

Defines different handler types what to do when invalid escape sequences are found inside unescapeString.

Functions

isStringLiteral
bool isStringLiteral(const(char)[] literal)

Checks if a string literal input has correct start/end sequences (quotes) to be any kind of D string literal.

isStringLiteral
bool isStringLiteral(const(char)[] literal, char stringCloseChar, bool hasPostfix, bool parseEscapes, int prefixLength)

Checks if a string literal input has correct start/end sequences (quotes) to be any kind of D string literal.

unescapeString
string unescapeString(string input)

Unescapes a D string, effectively being the same as mixing in the string into some function call, but only for single string literals.

Meta