scide: implement selectionLength for openDocument
[supercollider.git] / external_libraries / yaml-cpp-0.3.0 / src / directives.cpp
blobfaf1483bd2e60bec660cdf95143c5a86aa758ba8
1 #include "directives.h"
3 namespace YAML
5 Directives::Directives()
7 // version
8 version.isDefault = true;
9 version.major = 1;
10 version.minor = 2;
13 const std::string Directives::TranslateTagHandle(const std::string& handle) const
15 std::map <std::string, std::string>::const_iterator it = tags.find(handle);
16 if(it == tags.end()) {
17 if(handle == "!!")
18 return "tag:yaml.org,2002:";
19 return handle;
22 return it->second;