mirror of
https://github.com/loot/yaml-cpp.git
synced 2026-07-27 14:13:42 -07:00
Added folded and literal scalars.
This commit is contained in:
@@ -43,6 +43,9 @@ namespace YAML
|
||||
const RegEx EscSingleQuote = RegEx("\'\'");
|
||||
const RegEx EscBreak = RegEx('\\') + Break;
|
||||
|
||||
const RegEx ChompIndicator = RegEx("+-", REGEX_OR);
|
||||
const RegEx Chomp = (ChompIndicator + Digit) || (Digit + ChompIndicator) || ChompIndicator || Digit;
|
||||
|
||||
// and some functions
|
||||
std::string Escape(std::istream& in, int& length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user