mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Added bool, char, binary
This commit is contained in:
@@ -369,7 +369,6 @@ namespace YAML
|
|||||||
void Emitter::BlockMapPrepareKey(EmitterNodeType::value child)
|
void Emitter::BlockMapPrepareKey(EmitterNodeType::value child)
|
||||||
{
|
{
|
||||||
const unsigned curIndent = m_pState->CurIndent();
|
const unsigned curIndent = m_pState->CurIndent();
|
||||||
const unsigned nextIndent = curIndent + m_pState->CurGroupIndent();
|
|
||||||
const std::size_t childCount = m_pState->CurGroupChildCount();
|
const std::size_t childCount = m_pState->CurGroupChildCount();
|
||||||
|
|
||||||
if(child == EmitterNodeType::None)
|
if(child == EmitterNodeType::None)
|
||||||
@@ -520,6 +519,8 @@ namespace YAML
|
|||||||
if(!good())
|
if(!good())
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
|
PrepareNode(EmitterNodeType::Scalar);
|
||||||
|
m_stream << ComputeFullBoolName(b);
|
||||||
m_pState->StartedScalar();
|
m_pState->StartedScalar();
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
@@ -530,6 +531,8 @@ namespace YAML
|
|||||||
if(!good())
|
if(!good())
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
|
PrepareNode(EmitterNodeType::Scalar);
|
||||||
|
m_stream << ch;
|
||||||
m_pState->StartedScalar();
|
m_pState->StartedScalar();
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
@@ -635,6 +638,7 @@ namespace YAML
|
|||||||
if(!good())
|
if(!good())
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
|
// TODO
|
||||||
m_pState->StartedScalar();
|
m_pState->StartedScalar();
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
@@ -647,6 +651,8 @@ namespace YAML
|
|||||||
if(!good())
|
if(!good())
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
|
PrepareNode(EmitterNodeType::Scalar);
|
||||||
|
Utils::WriteBinary(m_stream, binary);
|
||||||
m_pState->StartedScalar();
|
m_pState->StartedScalar();
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
|
Reference in New Issue
Block a user