mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Merged utf branch changes r178:187 into the trunk
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user