Merged utf branch changes r178:187 into the trunk

This commit is contained in:
Jesse Beder
2009-07-10 03:10:03 +00:00
parent a7b8879494
commit b929eb94a0
13 changed files with 939 additions and 271 deletions

View File

@@ -3,6 +3,7 @@
#include "indentation.h"
#include "exceptions.h"
#include <sstream>
#include "stringsource.h"
namespace YAML
{
@@ -29,8 +30,8 @@ namespace YAML
|| (!Exp::Printable)
|| Exp::Break
|| Exp::Tab;
Buffer buffer(&str[0], str.size());
while(buffer.size) {
StringCharSource buffer(str.c_str(), str.size());
while(buffer) {
if(disallowed.Matches(buffer))
return false;
++buffer;