Make null handling YAML 1.2 compliant.

This commit is contained in:
TripleWhy
2016-04-02 00:14:59 +02:00
committed by Jesse Beder
parent 34bd1a7083
commit 52bcefa1f1
4 changed files with 10 additions and 6 deletions

View File

@@ -2,4 +2,8 @@
namespace YAML {
_Null Null;
bool IsNullString(const std::string& str) {
return str.empty() || str == "~" || str == "null" || str == "Null" || str == "NULL";
}
}