Lines Matching refs:is
146 static bool Decode(InputStream& is, unsigned* codepoint) { in Decode()
147 #define RAPIDJSON_COPY() c = is.Take(); *codepoint = (*codepoint << 6) | (static_cast<unsigned char… in Decode()
150 typename InputStream::Ch c = is.Take(); in Decode()
179 static bool Validate(InputStream& is, OutputStream& os) { in Validate()
180 #define RAPIDJSON_COPY() os.Put(c = is.Take()) in Validate()
223 static CharType TakeBOM(InputByteStream& is) { in TakeBOM()
225 typename InputByteStream::Ch c = Take(is); in TakeBOM()
227 c = is.Take(); in TakeBOM()
229 c = is.Take(); in TakeBOM()
231 c = is.Take(); in TakeBOM()
236 static Ch Take(InputByteStream& is) { in Take()
238 return static_cast<Ch>(is.Take()); in Take()
307 static bool Decode(InputStream& is, unsigned* codepoint) { in Decode()
309 typename InputStream::Ch c = is.Take(); in Decode()
316 c = is.Take(); in Decode()
325 static bool Validate(InputStream& is, OutputStream& os) { in Validate()
329 os.Put(static_cast<typename OutputStream::Ch>(c = is.Take())); in Validate()
333 os.Put(c = is.Take()); in Validate()
344 static CharType TakeBOM(InputByteStream& is) { in TakeBOM()
346 CharType c = Take(is); in TakeBOM()
347 return static_cast<uint16_t>(c) == 0xFEFFu ? Take(is) : c; in TakeBOM()
351 static CharType Take(InputByteStream& is) { in Take()
353 unsigned c = static_cast<uint8_t>(is.Take()); in Take()
354 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 8; in Take()
377 static CharType TakeBOM(InputByteStream& is) { in TakeBOM()
379 CharType c = Take(is); in TakeBOM()
380 return static_cast<uint16_t>(c) == 0xFEFFu ? Take(is) : c; in TakeBOM()
384 static CharType Take(InputByteStream& is) { in Take()
386 unsigned c = static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 8; in Take()
387 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())); in Take()
439 static bool Decode(InputStream& is, unsigned* codepoint) { in Decode()
441 Ch c = is.Take(); in Decode()
447 static bool Validate(InputStream& is, OutputStream& os) { in Validate()
450 os.Put(c = is.Take()); in Validate()
459 static CharType TakeBOM(InputByteStream& is) { in TakeBOM()
461 CharType c = Take(is); in TakeBOM()
462 return static_cast<uint32_t>(c) == 0x0000FEFFu ? Take(is) : c; in TakeBOM()
466 static CharType Take(InputByteStream& is) { in Take()
468 unsigned c = static_cast<uint8_t>(is.Take()); in Take()
469 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 8; in Take()
470 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 16; in Take()
471 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 24; in Take()
498 static CharType TakeBOM(InputByteStream& is) { in TakeBOM()
500 CharType c = Take(is); in TakeBOM()
501 return static_cast<uint32_t>(c) == 0x0000FEFFu ? Take(is) : c; in TakeBOM()
505 static CharType Take(InputByteStream& is) { in Take()
507 unsigned c = static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 24; in Take()
508 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 16; in Take()
509 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())) << 8; in Take()
510 c |= static_cast<unsigned>(static_cast<uint8_t>(is.Take())); in Take()
560 static bool Decode(InputStream& is, unsigned* codepoint) { in Decode()
561 uint8_t c = static_cast<uint8_t>(is.Take()); in Decode()
567 static bool Validate(InputStream& is, OutputStream& os) { in Validate()
568 uint8_t c = static_cast<uint8_t>(is.Take()); in Validate()
574 static CharType TakeBOM(InputByteStream& is) { in TakeBOM()
576 uint8_t c = static_cast<uint8_t>(Take(is)); in TakeBOM()
581 static Ch Take(InputByteStream& is) { in Take()
583 return static_cast<Ch>(is.Take()); in Take()
637 static RAPIDJSON_FORCEINLINE bool Decode(InputStream& is, unsigned* codepoint) { in Decode()
640 return (*f[is.GetType()])(is, codepoint); in Decode()
644 static RAPIDJSON_FORCEINLINE bool Validate(InputStream& is, OutputStream& os) { in Validate()
647 return (*f[is.GetType()])(is, os); in Validate()
661 static RAPIDJSON_FORCEINLINE bool Transcode(InputStream& is, OutputStream& os) { in Transcode()
663 if (!SourceEncoding::Decode(is, &codepoint)) in Transcode()
670 static RAPIDJSON_FORCEINLINE bool TranscodeUnsafe(InputStream& is, OutputStream& os) { in TranscodeUnsafe()
672 if (!SourceEncoding::Decode(is, &codepoint)) in TranscodeUnsafe()
680 static RAPIDJSON_FORCEINLINE bool Validate(InputStream& is, OutputStream& os) { in Validate()
681 return Transcode(is, os); // Since source/target encoding is different, must transcode. in Validate()
693 static RAPIDJSON_FORCEINLINE bool Transcode(InputStream& is, OutputStream& os) {
694 …os.Put(is.Take()); // Just copy one code unit. This semantic is different from primary template c…
699 static RAPIDJSON_FORCEINLINE bool TranscodeUnsafe(InputStream& is, OutputStream& os) {
700 …PutUnsafe(os, is.Take()); // Just copy one code unit. This semantic is different from primary tem…
705 static RAPIDJSON_FORCEINLINE bool Validate(InputStream& is, OutputStream& os) {
706 return Encoding::Validate(is, os); // source/target encoding are the same