File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ SOFTWARE.
6767#include " Poco/JSON/Object.h"
6868#include " Poco/JSON/Array.h"
6969#include " Poco/JSON/ParseHandler.h"
70+ #include " Poco/JSON/JSONException.h"
71+ #include " Poco/UTF8Encoding.h"
7072#include " Poco/Dynamic/Var.h"
71- #include " Poco/StreamTokenizer.h"
7273#include < string>
7374
7475
@@ -341,21 +342,21 @@ class JSON_API Parser
341342 CharIntType count = utf8CheckFirst (nextChar);
342343 if (!count)
343344 {
344- throw JSONException (format (" Unable to decode byte 0x%x" , (unsigned int ) nextChar));
345+ throw Poco::JSON:: JSONException (format (" Unable to decode byte 0x%x" , (unsigned int ) nextChar));
345346 }
346347
347348 char buffer[4 ];
348349 buffer[0 ] = nextChar;
349350 for (int i = 1 ; i < count; ++i)
350351 {
351352 int c = 0 ;
352- if (!source.nextChar (c)) throw JSONException (" Invalid UTF8 sequence found" );
353+ if (!source.nextChar (c)) throw Poco::JSON:: JSONException (" Invalid UTF8 sequence found" );
353354 buffer[i] = c;
354355 }
355356
356- if (!UTF8Encoding::isLegal ((unsigned char *) buffer, count))
357+ if (!Poco:: UTF8Encoding::isLegal ((unsigned char *) buffer, count))
357358 {
358- throw JSONException (" No legal UTF8 found" );
359+ throw Poco::JSON:: JSONException (" No legal UTF8 found" );
359360 }
360361
361362 for (int i = 0 ; i < count; ++i)
You can’t perform that action at this time.
0 commit comments