Added folded and literal scalars.

This commit is contained in:
Jesse Beder 2008-06-28 20:08:21 +00:00
parent 01ef70a6f9
commit 43ea59a4ed
7 changed files with 153 additions and 23 deletions

View file

@ -45,15 +45,20 @@ namespace YAML
bool IsValue();
bool IsPlainScalar();
void GetBlockIndentation(int& indent, std::string& breaks);
struct WhitespaceInfo {
WhitespaceInfo();
void SetChompers(char ch);
void AddBlank(char ch);
void AddBreak(const std::string& line);
std::string Join();
std::string Join(bool lastline = false);
bool leadingBlanks;
bool fold;
std::string whitespace, leadingBreaks, trailingBreaks;
int chomp, increment;
};
struct SimpleKey {