Moved the scalar-related functions to their own file.

This commit is contained in:
beder
2008-06-29 03:11:25 +00:00
parent 45dfc719e1
commit 3c56fd49eb
7 changed files with 378 additions and 352 deletions

View File

@@ -44,6 +44,10 @@ namespace YAML
};
struct PlainScalarToken: public ScalarToken {};
struct QuotedScalarToken: public ScalarToken {};
struct QuotedScalarToken: public ScalarToken {
bool single;
virtual void Write(std::ostream& out) const { out << (single ? '\'' : '\"') << value << (single ? '\'' : '\"'); }
};
struct BlockScalarToken: public ScalarToken {};
}