Added support for emitting and represeting null

This commit is contained in:
Jesse Beder
2009-07-30 04:42:27 +00:00
parent 72919adf55
commit ae41e58ca3
10 changed files with 576 additions and 514 deletions

View File

@@ -83,6 +83,12 @@ namespace YAML
return false;
}
template <>
bool Converter<_Null>::Convert(const std::string& input, _Null& /*output*/)
{
return input.empty() || input == "~" || input == "null" || input == "Null" || input == "NULL";
}
template <>
bool Converter<std::wstring>::Convert(const std::string& input, std::wstring& output)
{