/lvgl-latest/src/libs/thorvg/rapidjson/ |
D | stream.h | 91 inline void PutUnsafe(Stream& stream, typename Stream::Ch c) { in PutUnsafe() 96 template<typename Stream, typename Ch> 97 inline void PutN(Stream& stream, Ch c, size_t n) { in PutN() 121 typedef typename Encoding::Ch Ch; typedef 124 Ch Peek() const { return is_.Peek(); } in Peek() 125 Ch Take() { return is_.Take(); } in Take() 127 Ch* PutBegin() { return is_.PutBegin(); } in PutBegin() 128 void Put(Ch ch) { is_.Put(ch); } in Put() 130 size_t PutEnd(Ch* ch) { return is_.PutEnd(ch); } in PutEnd() 133 const Ch* Peek4() const { return is_.Peek4(); } in Peek4() [all …]
|
D | encodedstream.h | 40 RAPIDJSON_STATIC_ASSERT(sizeof(typename InputByteStream::Ch) == 1); in RAPIDJSON_DIAG_OFF() 42 typedef typename Encoding::Ch Ch; in RAPIDJSON_DIAG_OFF() typedef 48 Ch Peek() const { return current_; } in RAPIDJSON_DIAG_OFF() 49 Ch Take() { Ch c = current_; current_ = Encoding::Take(is_); return c; } in RAPIDJSON_DIAG_OFF() 53 void Put(Ch) { RAPIDJSON_ASSERT(false); } in RAPIDJSON_DIAG_OFF() 55 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 56 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 63 Ch current_; in RAPIDJSON_DIAG_OFF() 70 typedef UTF8<>::Ch Ch; typedef 77 Ch Peek() const { return is_.Peek(); } in Peek() [all …]
|
D | encodings.h | 97 typedef CharType Ch; typedef 104 os.Put(static_cast<Ch>(codepoint & 0xFF)); in Encode() 106 os.Put(static_cast<Ch>(0xC0 | ((codepoint >> 6) & 0xFF))); in Encode() 107 os.Put(static_cast<Ch>(0x80 | ((codepoint & 0x3F)))); in Encode() 110 os.Put(static_cast<Ch>(0xE0 | ((codepoint >> 12) & 0xFF))); in Encode() 111 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode() 112 os.Put(static_cast<Ch>(0x80 | (codepoint & 0x3F))); in Encode() 116 os.Put(static_cast<Ch>(0xF0 | ((codepoint >> 18) & 0xFF))); in Encode() 117 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 12) & 0x3F))); in Encode() 118 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode() [all …]
|
D | stringbuffer.h | 43 typedef typename Encoding::Ch Ch; typedef 56 void Put(Ch c) { *stack_.template Push<Ch>() = c; } in Put() 57 void PutUnsafe(Ch c) { *stack_.template PushUnsafe<Ch>() = c; } in PutUnsafe() 63 *stack_.template Push<Ch>() = '\0'; in ShrinkToFit() 65 stack_.template Pop<Ch>(1); in ShrinkToFit() 68 void Reserve(size_t count) { stack_.template Reserve<Ch>(count); } in Reserve() 69 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } in Push() 70 Ch* PushUnsafe(size_t count) { return stack_.template PushUnsafe<Ch>(count); } in PushUnsafe() 71 void Pop(size_t count) { stack_.template Pop<Ch>(count); } in Pop() 73 const Ch* GetString() const { in GetString() [all …]
|
D | memorystream.h | 41 typedef char Ch; // byte typedef 43 …MemoryStream(const Ch *src, size_t size) : src_(src), begin_(src), end_(src + size), size_(size) {} in MemoryStream() 45 Ch Peek() const { return RAPIDJSON_UNLIKELY(src_ == end_) ? '\0' : *src_; } in Peek() 46 Ch Take() { return RAPIDJSON_UNLIKELY(src_ == end_) ? '\0' : *src_++; } in Take() 49 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; } in PutBegin() 50 void Put(Ch) { RAPIDJSON_ASSERT(false); } in Put() 52 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in PutEnd() 55 const Ch* Peek4() const { in Peek4() 59 const Ch* src_; //!< Current read position. 60 const Ch* begin_; //!< Original head of the string. [all …]
|
D | uri.h | 35 typedef typename ValueType::Ch Ch; typedef 37 typedef std::basic_string<Ch> String; 44 …GenericUri(const Ch* uri, SizeType len, Allocator* allocator = 0) : uri_(), base_(), scheme_(), au… in uri_() 48 …GenericUri(const Ch* uri, Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), path_()… in uri_() 49 Parse(uri, internal::StrLen<Ch>(uri)); in uri_() 54 const Ch* u = uri.template Get<const Ch*>(); // TypeHelper from document.h in uri_() 55 Parse(u, internal::StrLen<Ch>(u)); in uri_() 60 Parse(uri.c_str(), internal::StrLen<Ch>(uri.c_str())); in uri_() 100 uri.template Set<const Ch*>(this->GetString(), allocator); // TypeHelper from document.h in Get() 103 const Ch* GetString() const { return uri_; } in GetString() [all …]
|
D | filereadstream.h | 36 typedef char Ch; //!< Character type (byte). in RAPIDJSON_DIAG_OFF() typedef 50 Ch Peek() const { return *current_; } in RAPIDJSON_DIAG_OFF() 51 Ch Take() { Ch c = *current_; Read(); return c; } in RAPIDJSON_DIAG_OFF() 55 void Put(Ch) { RAPIDJSON_ASSERT(false); } in RAPIDJSON_DIAG_OFF() 57 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 58 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 61 const Ch* Peek4() const { in RAPIDJSON_DIAG_OFF() 84 Ch *buffer_; in RAPIDJSON_DIAG_OFF() 86 Ch *bufferLast_; in RAPIDJSON_DIAG_OFF() 87 Ch *current_; in RAPIDJSON_DIAG_OFF()
|
D | istreamwrapper.h | 51 typedef typename StreamType::char_type Ch; in RAPIDJSON_DIAG_OFF() typedef 72 Ch Peek() const { return *current_; } in RAPIDJSON_DIAG_OFF() 73 Ch Take() { Ch c = *current_; Read(); return c; } in RAPIDJSON_DIAG_OFF() 77 void Put(Ch) { RAPIDJSON_ASSERT(false); } in RAPIDJSON_DIAG_OFF() 79 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 80 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 83 const Ch* Peek4() const { in RAPIDJSON_DIAG_OFF() 110 Ch peekBuffer_[4], *buffer_; in RAPIDJSON_DIAG_OFF() 112 Ch *bufferLast_; in RAPIDJSON_DIAG_OFF() 113 Ch *current_; in RAPIDJSON_DIAG_OFF()
|
D | memorybuffer.h | 38 typedef char Ch; // byte typedef 42 void Put(Ch c) { *stack_.template Push<Ch>() = c; } in Put() 47 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } in Push() 48 void Pop(size_t count) { stack_.template Pop<Ch>(count); } in Pop() 50 const Ch* GetBuffer() const { in GetBuffer() 51 return stack_.template Bottom<Ch>(); in GetBuffer()
|
D | pointer.h | 71 typedef typename ValueType::Ch Ch; //!< Character type from Value typedef 89 …const Ch* name; //!< Name of the token. It has null character at the end but it can co… 105 …explicit GenericPointer(const Ch* source, Allocator* allocator = 0) : allocator_(allocator), ownAl… in allocator_() 116 …explicit GenericPointer(const std::basic_string<Ch>& source, Allocator* allocator = 0) : allocator… in allocator_() 128 …GenericPointer(const Ch* source, size_t length, Allocator* allocator = 0) : allocator_(allocator),… in allocator_() 238 Ch *p = r.CopyFromRaw(*this, 1, token.length + 1); 239 std::memcpy(p, token.name, (token.length + 1) * sizeof(Ch)); 253 GenericPointer Append(const Ch* name, SizeType length, Allocator* allocator = 0) const { 265 …nternal::NotExpr<internal::IsSame<typename internal::RemoveConst<T>::Type, Ch> >), (GenericPointer… 277 GenericPointer Append(const std::basic_string<Ch>& name, Allocator* allocator = 0) const { [all …]
|
D | cursorstreamwrapper.h | 41 typedef typename Encoding::Ch Ch; typedef 47 Ch Take() { in Take() 48 Ch ch = this->is_.Take(); in Take()
|
D | prettywriter.h | 51 typedef typename Base::Ch Ch; typedef 75 PrettyWriter& SetIndent(Ch indentChar, unsigned indentCharCount) { in SetIndent() 103 bool RawNumber(const Ch* str, SizeType length, bool copy = false) { 110 bool String(const Ch* str, SizeType length, bool copy = false) { 118 bool String(const std::basic_string<Ch>& str) { in String() 129 … bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); } 132 bool Key(const std::basic_string<Ch>& str) { in Key() 187 bool String(const Ch* str) { return String(str, internal::StrLen(str)); } in String() 188 bool Key(const Ch* str) { return Key(str, internal::StrLen(str)); } in Key() 201 bool RawValue(const Ch* json, size_t length, Type type) { in RawValue() [all …]
|
D | document.h | 347 typedef CharType Ch; //!< character type of the string typedef 417 operator const Ch *() const { return s; } 419 const Ch* const s; //!< plain CharType pointer 429 static const Ch emptyString[]; 598 struct TypeHelper<ValueType, const typename ValueType::Ch*> { 599 typedef const typename ValueType::Ch* StringType; 608 struct TypeHelper<ValueType, std::basic_string<typename ValueType::Ch> > { 609 typedef std::basic_string<typename ValueType::Ch> StringType; 674 typedef typename Encoding::Ch Ch; //!< Character type derived from Encoding. 675 typedef GenericStringRef<Ch> StringRefType; //!< Reference to a constant string [all …]
|
D | writer.h | 92 typedef typename SourceEncoding::Ch Ch; typedef 196 bool RawNumber(const Ch* str, SizeType length, bool copy = false) { 203 bool String(const Ch* str, SizeType length, bool copy = false) { 211 bool String(const std::basic_string<Ch>& str) { in String() 222 … bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); } 225 bool Key(const std::basic_string<Ch>& str) in Key() 259 bool String(const Ch* const& str) { return String(str, internal::StrLen(str)); } in String() 260 bool Key(const Ch* const& str) { return Key(str, internal::StrLen(str)); } in Key() 272 bool RawValue(const Ch* json, size_t length, Type type) { in RawValue() 318 PutUnsafe(*os_, static_cast<typename OutputStream::Ch>(*p)); in WriteInt() [all …]
|
D | schema.h | 278 typedef typename SchemaType::Ch Ch; typedef 293 virtual void TooLong(const Ch* str, SizeType length, SizeType expected) = 0; 294 virtual void TooShort(const Ch* str, SizeType length, SizeType expected) = 0; 295 virtual void DoesNotMatch(const Ch* str, SizeType length) = 0; 308 virtual void DisallowedProperty(const Ch* name, SizeType length) = 0; 338 typedef typename Encoding::Ch Ch; typedef 356 bool RawNumber(const Ch* str, SizeType len, bool) { in RawNumber() 357 WriteBuffer(kNumberType, str, len * sizeof(Ch)); in RawNumber() 361 bool String(const Ch* str, SizeType len, bool) { in String() 362 WriteBuffer(kStringType, str, len * sizeof(Ch)); in String() [all …]
|
D | ostreamwrapper.h | 47 typedef typename StreamType::char_type Ch; in RAPIDJSON_DIAG_OFF() typedef 50 void Put(Ch c) { in RAPIDJSON_DIAG_OFF()
|
D | reader.h | 199 typedef typename Encoding::Ch Ch; typedef 212 …bool RawNumber(const Ch* str, SizeType len, bool copy) { return static_cast<Override&>(*this).Stri… in RawNumber() 213 bool String(const Ch*, SizeType, bool) { return static_cast<Override&>(*this).Default(); } in String() 215 …bool Key(const Ch* str, SizeType len, bool copy) { return static_cast<Override&>(*this).String(str… in Key() 270 typename InputStream::Ch c; in SkipWhitespace() 541 typedef typename SourceEncoding::Ch Ch; //!< SourceEncoding character type typedef 895 RAPIDJSON_FORCEINLINE static bool Consume(InputStream& is, typename InputStream::Ch expect) { in Consume() 909 Ch c = is.Peek(); in ParseHex4() 930 typedef CharType Ch; typedef 933 RAPIDJSON_FORCEINLINE void Put(Ch c) { in Put() [all …]
|
D | filewritestream.h | 34 typedef char Ch; //!< Character type. Only support char. typedef
|
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | strfunc.h | 30 template <typename Ch> 31 inline SizeType StrLen(const Ch* s) { in StrLen() 33 const Ch* p = s; in StrLen() 54 template<typename Ch> 55 inline int StrCmp(const Ch* s1, const Ch* s2) { in StrCmp() 64 bool CountStringCodePoint(const typename Encoding::Ch* s, SizeType length, SizeType* outCount) { in CountStringCodePoint() 68 const typename Encoding::Ch* end = s + length; in CountStringCodePoint()
|
D | biginteger.h | 44 template<typename Ch> 45 BigInteger(const Ch* decimals, size_t length) : count_(1) { in BigInteger() 229 template<typename Ch> 230 void AppendDecimal64(const Ch* begin, const Ch* end) { in AppendDecimal64() 245 template<typename Ch> 246 static uint64_t ParseUint64(const Ch* begin, const Ch* end) { in ParseUint64() 248 for (const Ch* p = begin; p != end; ++p) { in ParseUint64() 249 RAPIDJSON_ASSERT(*p >= Ch('0') && *p <= Ch('9')); in ParseUint64() 250 r = r * 10u + static_cast<unsigned>(*p - Ch('0')); in ParseUint64()
|
D | strtod.h | 131 template<typename Ch> 132 inline bool StrtodDiyFp(const Ch* decimals, int dLen, int dExp, double* result) { in StrtodDiyFp() 137 (significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] > Ch('5'))) in StrtodDiyFp() 139 significand = significand * 10u + static_cast<unsigned>(decimals[i] - Ch('0')); in StrtodDiyFp() 142 if (i < dLen && decimals[i] >= Ch('5')) // Rounding in StrtodDiyFp() 209 template<typename Ch> 210 inline double StrtodBigInteger(double approx, const Ch* decimals, int dLen, int dExp) { in StrtodBigInteger() 228 template<typename Ch> 229 inline double StrtodFullPrecision(double d, int p, const Ch* decimals, size_t length, size_t decima… in StrtodFullPrecision()
|
D | regex.h | 113 typedef typename Encoding::Ch Ch; in RAPIDJSON_DIAG_OFF() typedef 116 GenericRegex(const Ch* source, Allocator* allocator = 0) : in RAPIDJSON_DIAG_OFF() 609 typedef typename Encoding::Ch Ch; in RAPIDJSON_DIAG_OFF() typedef 633 bool Match(const Ch* s) { in RAPIDJSON_DIAG_OFF() 643 bool Search(const Ch* s) { in RAPIDJSON_DIAG_OFF()
|