Renamed begin/end scalar/group to started/ended scalar/group

This commit is contained in:
Jesse Beder
2012-05-21 23:39:45 -05:00
parent 07e88a78cb
commit f72e325c40
3 changed files with 21 additions and 21 deletions

View File

@@ -212,7 +212,7 @@ namespace YAML
PrepareNode(m_pState->NextGroupType(GroupType::Seq));
m_pState->BeginGroup(GroupType::Seq);
m_pState->StartedGroup(GroupType::Seq);
}
// EmitEndSeq
@@ -221,7 +221,7 @@ namespace YAML
if(!good())
return;
m_pState->EndGroup(GroupType::Seq);
m_pState->EndedGroup(GroupType::Seq);
}
// EmitBeginMap
@@ -232,7 +232,7 @@ namespace YAML
PrepareNode(m_pState->NextGroupType(GroupType::Map));
m_pState->BeginGroup(GroupType::Map);
m_pState->StartedGroup(GroupType::Map);
}
// EmitEndMap
@@ -241,7 +241,7 @@ namespace YAML
if(!good())
return;
m_pState->EndGroup(GroupType::Map);
m_pState->EndedGroup(GroupType::Map);
}
// EmitNewline
@@ -438,7 +438,7 @@ namespace YAML
break;
}
m_pState->BeginScalar();
m_pState->StartedScalar();
return *this;
}
@@ -493,7 +493,7 @@ namespace YAML
if(!good())
return *this;
m_pState->BeginScalar();
m_pState->StartedScalar();
return *this;
}
@@ -503,7 +503,7 @@ namespace YAML
if(!good())
return *this;
m_pState->BeginScalar();
m_pState->StartedScalar();
return *this;
}
@@ -525,7 +525,7 @@ namespace YAML
return *this;
}
m_pState->BeginScalar();
m_pState->StartedScalar();
return *this;
}
@@ -592,7 +592,7 @@ namespace YAML
if(!good())
return *this;
m_pState->BeginScalar();
m_pState->StartedScalar();
return *this;
}
@@ -602,7 +602,7 @@ namespace YAML
if(!good())
return *this;
m_pState->BeginScalar();
m_pState->StartedScalar();
return *this;
}
@@ -614,7 +614,7 @@ namespace YAML
if(!good())
return *this;
m_pState->BeginScalar();
m_pState->StartedScalar();
return *this;
}

View File

@@ -58,7 +58,7 @@ namespace YAML
m_hasNonContent = true;
}
void EmitterState::BeginNode()
void EmitterState::StartedNode()
{
if(!m_groups.empty())
m_groups.top().childCount++;
@@ -87,14 +87,14 @@ namespace YAML
return EmitterNodeType::None;
}
void EmitterState::BeginScalar()
void EmitterState::StartedScalar()
{
BeginNode();
StartedNode();
}
void EmitterState::BeginGroup(GroupType::value type)
void EmitterState::StartedGroup(GroupType::value type)
{
BeginNode();
StartedNode();
const int lastGroupIndent = (m_groups.empty() ? 0 : m_groups.top().indent);
m_curIndent += lastGroupIndent;
@@ -114,7 +114,7 @@ namespace YAML
m_groups.push(pGroup);
}
void EmitterState::EndGroup(GroupType::value type)
void EmitterState::EndedGroup(GroupType::value type)
{
if(m_groups.empty())
return SetError(ErrorMsg::UNMATCHED_GROUP_TAG);

View File

@@ -37,9 +37,9 @@ namespace YAML
void SetAnchor();
void SetTag();
void SetNonContent();
void BeginScalar();
void BeginGroup(GroupType::value type);
void EndGroup(GroupType::value type);
void StartedScalar();
void StartedGroup(GroupType::value type);
void EndedGroup(GroupType::value type);
EmitterNodeType::value NextGroupType(GroupType::value type) const;
EmitterNodeType::value CurGroupNodeType() const;
@@ -100,7 +100,7 @@ namespace YAML
template <typename T>
void _Set(Setting<T>& fmt, T value, FmtScope::value scope);
void BeginNode();
void StartedNode();
private:
// basic state ok?