Added single character emitting

This commit is contained in:
beder
2011-11-14 16:23:14 -06:00
parent fe5fcbb84e
commit c6e5ad350b
5 changed files with 52 additions and 1 deletions

View File

@@ -733,6 +733,20 @@ namespace YAML
return *this;
}
Emitter& Emitter::Write(char ch)
{
if(!good())
return *this;
PreAtomicWrite();
EmitSeparationIfNecessary();
Utils::WriteChar(m_stream, ch);
PostAtomicWrite();
return *this;
}
Emitter& Emitter::Write(const _Alias& alias)
{
if(!good())