mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Spelling (#870)
* spelling: differently * spelling: irrelevant * spelling: specified
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Encodings and `yaml-cpp` #
|
# Encodings and `yaml-cpp` #
|
||||||
|
|
||||||
`yaml-cpp` will parse any file as specificed by the [YAML 1.2 spec](http://www.yaml.org/spec/1.2/spec.html#id2570322). Internally, it stores all strings in UTF-8, and representation is done with UTF-8. This means that in
|
`yaml-cpp` will parse any file as specified by the [YAML 1.2 spec](http://www.yaml.org/spec/1.2/spec.html#id2570322). Internally, it stores all strings in UTF-8, and representation is done with UTF-8. This means that in
|
||||||
|
|
||||||
```
|
```
|
||||||
std::string str;
|
std::string str;
|
||||||
|
@@ -88,7 +88,7 @@ void Scanner::ScanNextToken() {
|
|||||||
return StartStream();
|
return StartStream();
|
||||||
}
|
}
|
||||||
|
|
||||||
// get rid of whitespace, etc. (in between tokens it should be irrelevent)
|
// get rid of whitespace, etc. (in between tokens it should be irrelevant)
|
||||||
ScanToNextToken();
|
ScanToNextToken();
|
||||||
|
|
||||||
// maybe need to end some blocks
|
// maybe need to end some blocks
|
||||||
|
@@ -171,7 +171,7 @@ void Scanner::ScanBlockEntry() {
|
|||||||
|
|
||||||
// Key
|
// Key
|
||||||
void Scanner::ScanKey() {
|
void Scanner::ScanKey() {
|
||||||
// handle keys diffently in the block context (and manage indents)
|
// handle keys differently in the block context (and manage indents)
|
||||||
if (InBlockContext()) {
|
if (InBlockContext()) {
|
||||||
if (!m_simpleKeyAllowed)
|
if (!m_simpleKeyAllowed)
|
||||||
throw ParserException(INPUT.mark(), ErrorMsg::MAP_KEY);
|
throw ParserException(INPUT.mark(), ErrorMsg::MAP_KEY);
|
||||||
@@ -199,7 +199,7 @@ void Scanner::ScanValue() {
|
|||||||
// seems fine)
|
// seems fine)
|
||||||
m_simpleKeyAllowed = false;
|
m_simpleKeyAllowed = false;
|
||||||
} else {
|
} else {
|
||||||
// handle values diffently in the block context (and manage indents)
|
// handle values differently in the block context (and manage indents)
|
||||||
if (InBlockContext()) {
|
if (InBlockContext()) {
|
||||||
if (!m_simpleKeyAllowed)
|
if (!m_simpleKeyAllowed)
|
||||||
throw ParserException(INPUT.mark(), ErrorMsg::MAP_VALUE);
|
throw ParserException(INPUT.mark(), ErrorMsg::MAP_VALUE);
|
||||||
|
Reference in New Issue
Block a user