@@ -297,7 +297,7 @@ class Writer {
297
297
const char * end = internal::i32toa (i, buffer);
298
298
PutReserve (*os_, static_cast <size_t >(end - buffer));
299
299
for (const char * p = buffer; p != end; ++p)
300
- PutUnsafe (*os_, static_cast <typename TargetEncoding ::Ch>(*p));
300
+ PutUnsafe (*os_, static_cast <typename OutputStream ::Ch>(*p));
301
301
return true ;
302
302
}
303
303
@@ -306,7 +306,7 @@ class Writer {
306
306
const char * end = internal::u32toa (u, buffer);
307
307
PutReserve (*os_, static_cast <size_t >(end - buffer));
308
308
for (const char * p = buffer; p != end; ++p)
309
- PutUnsafe (*os_, static_cast <typename TargetEncoding ::Ch>(*p));
309
+ PutUnsafe (*os_, static_cast <typename OutputStream ::Ch>(*p));
310
310
return true ;
311
311
}
312
312
@@ -315,7 +315,7 @@ class Writer {
315
315
const char * end = internal::i64toa (i64 , buffer);
316
316
PutReserve (*os_, static_cast <size_t >(end - buffer));
317
317
for (const char * p = buffer; p != end; ++p)
318
- PutUnsafe (*os_, static_cast <typename TargetEncoding ::Ch>(*p));
318
+ PutUnsafe (*os_, static_cast <typename OutputStream ::Ch>(*p));
319
319
return true ;
320
320
}
321
321
@@ -324,7 +324,7 @@ class Writer {
324
324
char * end = internal::u64toa (u64 , buffer);
325
325
PutReserve (*os_, static_cast <size_t >(end - buffer));
326
326
for (char * p = buffer; p != end; ++p)
327
- PutUnsafe (*os_, static_cast <typename TargetEncoding ::Ch>(*p));
327
+ PutUnsafe (*os_, static_cast <typename OutputStream ::Ch>(*p));
328
328
return true ;
329
329
}
330
330
@@ -357,7 +357,7 @@ class Writer {
357
357
}
358
358
359
359
bool WriteString (const Ch* str, SizeType length) {
360
- static const typename TargetEncoding ::Ch hexDigits[16 ] = { ' 0' , ' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' , ' 7' , ' 8' , ' 9' , ' A' , ' B' , ' C' , ' D' , ' E' , ' F' };
360
+ static const typename OutputStream ::Ch hexDigits[16 ] = { ' 0' , ' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' , ' 7' , ' 8' , ' 9' , ' A' , ' B' , ' C' , ' D' , ' E' , ' F' };
361
361
static const char escape[256 ] = {
362
362
#define Z16 0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0
363
363
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
@@ -413,7 +413,7 @@ class Writer {
413
413
else if ((sizeof (Ch) == 1 || static_cast <unsigned >(c) < 256 ) && RAPIDJSON_UNLIKELY (escape[static_cast <unsigned char >(c)])) {
414
414
is.Take ();
415
415
PutUnsafe (*os_, ' \\ ' );
416
- PutUnsafe (*os_, static_cast <typename TargetEncoding ::Ch>(escape[static_cast <unsigned char >(c)]));
416
+ PutUnsafe (*os_, static_cast <typename OutputStream ::Ch>(escape[static_cast <unsigned char >(c)]));
417
417
if (escape[static_cast <unsigned char >(c)] == ' u' ) {
418
418
PutUnsafe (*os_, ' 0' );
419
419
PutUnsafe (*os_, ' 0' );
0 commit comments