Home
last modified time | relevance | path

Searched refs:Ch (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dencodedstream.h34 RAPIDJSON_STATIC_ASSERT(sizeof(typename InputByteStream::Ch) == 1);
36 typedef typename Encoding::Ch Ch; typedef
42 Ch Peek() const { return current_; } in Peek()
43 Ch Take() { Ch c = current_; current_ = Encoding::Take(is_); return c; } in Take()
47 void Put(Ch) { RAPIDJSON_ASSERT(false); } in Put() argument
49 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; } in PutBegin()
50 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in PutEnd() argument
57 Ch current_;
67 RAPIDJSON_STATIC_ASSERT(sizeof(typename OutputByteStream::Ch) == 1);
69 typedef typename Encoding::Ch Ch; typedef
[all …]
Dencodings.h97 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 …]
Drapidjson.h558 template<typename Stream, typename Ch>
559 inline void PutN(Stream& stream, Ch c, size_t n) {
572 typedef typename Encoding::Ch Ch;
574 explicit GenericStringStream(const Ch *src) : src_(src), head_(src) {}
576 Ch Peek() const { return *src_; }
577 Ch Take() { return *src_++; }
580 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
581 void Put(Ch) { RAPIDJSON_ASSERT(false); }
583 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; }
585 const Ch* src_; //!< Current read position.
[all …]
Dpointer.h74 typedef typename EncodingType::Ch Ch; //!< Character type from Value typedef
90 …const Ch* name; //!< Name of the token. It has null character at the end but it can co…
106 …explicit GenericPointer(const Ch* source, Allocator* allocator = 0) : allocator_(allocator), ownAl… in allocator_()
117 …explicit GenericPointer(const std::basic_string<Ch>& source, Allocator* allocator = 0) : allocator… in allocator_()
129 …GenericPointer(const Ch* source, size_t length, Allocator* allocator = 0) : allocator_(allocator),… in allocator_()
204 Ch *p = r.CopyFromRaw(*this, 1, token.length + 1);
205 std::memcpy(p, token.name, (token.length + 1) * sizeof(Ch));
219 GenericPointer Append(const Ch* name, SizeType length, Allocator* allocator = 0) const {
231 …nternal::NotExpr<internal::IsSame<typename internal::RemoveConst<T>::Type, Ch> >), (GenericPointer…
243 GenericPointer Append(const std::basic_string<Ch>& name, Allocator* allocator = 0) const {
[all …]
Dstringbuffer.h37 typedef typename Encoding::Ch Ch; typedef
50 void Put(Ch c) { *stack_.template Push<Ch>() = c; } in Put()
56 *stack_.template Push<Ch>() = '\0'; in ShrinkToFit()
58 stack_.template Pop<Ch>(1); in ShrinkToFit()
60 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } in Push()
61 void Pop(size_t count) { stack_.template Pop<Ch>(count); } in Pop()
63 const Ch* GetString() const { in GetString()
65 *stack_.template Push<Ch>() = '\0'; in GetString()
66 stack_.template Pop<Ch>(1); in GetString()
68 return stack_.template Bottom<Ch>(); in GetString()
Dmemorystream.h35 typedef char Ch; // byte typedef
37 …MemoryStream(const Ch *src, size_t size) : src_(src), begin_(src), end_(src + size), size_(size) {} in MemoryStream()
39 Ch Peek() const { return (src_ == end_) ? '\0' : *src_; } in Peek()
40 Ch Take() { return (src_ == end_) ? '\0' : *src_++; } in Take()
43 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; } in PutBegin()
44 void Put(Ch) { RAPIDJSON_ASSERT(false); } in Put()
46 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in PutEnd()
49 const Ch* Peek4() const { in Peek4()
53 const Ch* src_; //!< Current read position.
54 const Ch* begin_; //!< Original head of the string.
[all …]
Dfilereadstream.h29 typedef char Ch; //!< Character type (byte). typedef
43 Ch Peek() const { return *current_; } in Peek()
44 Ch Take() { Ch c = *current_; Read(); return c; } in Take()
48 void Put(Ch) { RAPIDJSON_ASSERT(false); } in Put() argument
50 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; } in PutBegin()
51 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in PutEnd() argument
54 const Ch* Peek4() const { in Peek4()
77 Ch *buffer_;
79 Ch *bufferLast_;
80 Ch *current_;
Ddocument.h260 typedef CharType Ch; //!< character type of the string
322 operator const Ch *() const { return s; }
324 const Ch* const s; //!< plain CharType pointer
427 typedef typename Encoding::Ch Ch; //!< Character type derived from Encoding.
428 typedef GenericStringRef<Ch> StringRefType; //!< Reference to a constant string
552 …GenericValue(const Ch* s, SizeType length) RAPIDJSON_NOEXCEPT : data_(), flags_() { SetStringRaw(S…
558 …GenericValue(const Ch* s, SizeType length, Allocator& allocator) : data_(), flags_() { SetStringRa…
561 …GenericValue(const Ch*s, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(s), al…
567 …GenericValue(const std::basic_string<Ch>& s, Allocator& allocator) : data_(), flags_() { SetString…
589 Allocator::Free(const_cast<Ch*>(data_.s.str));
[all …]
Dmemorybuffer.h38 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()
Dreader.h182 typedef typename Encoding::Ch Ch; typedef
194 bool String(const Ch*, SizeType, bool) { return static_cast<Override&>(*this).Default(); } in String()
196 …bool Key(const Ch* str, SizeType len, bool copy) { return static_cast<Override&>(*this).String(str… in Key()
376 typedef typename SourceEncoding::Ch Ch; //!< SourceEncoding character type typedef
595 Ch c = is.Take(); in ParseHex4()
615 typedef CharType Ch; typedef
618 RAPIDJSON_FORCEINLINE void Put(Ch c) { in Put()
619 *stack_.template Push<Ch>() = c; in Put()
623 Ch* Pop() { in Pop()
624 return stack_.template Pop<Ch>(length_); in Pop()
[all …]
Dprettywriter.h38 typedef typename Base::Ch Ch; typedef
53 PrettyWriter& SetIndent(Ch indentChar, unsigned indentCharCount) { in SetIndent()
73 bool String(const Ch* str, SizeType length, bool copy = false) {
80 bool String(const std::basic_string<Ch>& str) { in String()
91 … bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); }
141 bool String(const Ch* str) { return String(str, internal::StrLen(str)); } in String()
142 bool Key(const Ch* str) { return Key(str, internal::StrLen(str)); } in Key()
192 Ch indentChar_;
Dwriter.h56 typedef typename SourceEncoding::Ch Ch; typedef
122 bool String(const Ch* str, SizeType length, bool copy = false) {
129 bool String(const std::basic_string<Ch>& str) { in String()
140 … bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); }
175 bool String(const Ch* str) { return String(str, internal::StrLen(str)); } in String()
176 bool Key(const Ch* str) { return Key(str, internal::StrLen(str)); } in Key()
244 bool WriteString(const Ch* str, SizeType length) { in WriteString()
261 const Ch c = is.Peek(); in WriteString()
293 else if ((sizeof(Ch) == 1 || (unsigned)c < 256) && escape[(unsigned char)c]) { in WriteString()
Dfilewritestream.h29 typedef char Ch; //!< Character type. Only support char. typedef
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dunittest.h44 template <typename Ch>
45 inline unsigned StrLen(const Ch* s) { in StrLen()
46 const Ch* p = s; in StrLen()
51 template<typename Ch>
52 inline int StrCmp(const Ch* s1, const Ch* s2) { in StrCmp()
57 template <typename Ch>
58 inline Ch* StrDup(const Ch* str) { in StrDup()
59 size_t bufferSize = sizeof(Ch) * (StrLen(str) + 1); in StrDup()
60 Ch* buffer = (Ch*)malloc(bufferSize); in StrDup()
Dreadertest.cpp450 …ingHandler() { EXPECT_TRUE(str_ != 0); if (copy_) free(const_cast<typename Encoding::Ch*>(str_)); } in ~ParseStringHandler()
456 bool String(const typename Encoding::Ch* str, size_t length, bool copy) { in String()
459 str_ = (typename Encoding::Ch*)malloc((length + 1) * sizeof(typename Encoding::Ch)); in String()
460 …memcpy(const_cast<typename Encoding::Ch*>(str_), str, (length + 1) * sizeof(typename Encoding::Ch)… in String()
469 const typename Encoding::Ch* str_;
477 Encoding::Ch* buffer = StrDup(x); \ in TEST()
482 EXPECT_EQ(0, StrCmp<Encoding::Ch>(e, h.str_)); \ in TEST()
489 EXPECT_EQ(0, StrCmp<Encoding::Ch>(e, h2.str_)); \ in TEST()
501 static const Encoding::Ch* e = reinterpret_cast<const Encoding::Ch *>(&ue[0]); \ in TEST()
509 static const Encoding::Ch* e = reinterpret_cast<const Encoding::Ch *>(&ue[0]); \ in TEST()
[all …]
Dprettywritertest.cpp102 typedef char Ch; typedef in OStreamWrapper
106 Ch Peek() const { assert(false); return '\0'; } in Peek()
107 Ch Take() { assert(false); return '\0'; } in Take()
110 Ch* PutBegin() { assert(false); return 0; } in PutBegin()
111 void Put(Ch c) { os_.put(c); } in Put()
113 size_t PutEnd(Ch*) { assert(false); return 0; } in PutEnd() argument
Dencodingstest.cpp344 const UTF16<>::Ch* encodedStr = os.GetString(); in TEST()
356 UTF16<>::Ch buffer[3], *p = &buffer[0]; in TEST()
363 *p++ = static_cast<UTF16<>::Ch>(decodedCodepoint); in TEST()
366 *p++ = static_cast<UTF16<>::Ch>(0xD7C0 + (decodedCodepoint >> 10)); in TEST()
367 *p++ = static_cast<UTF16<>::Ch>(0xDC00 + (decodedCodepoint & 0x3FF)); in TEST()
403 const UTF32<>::Ch* encodedStr = os.GetString(); in TEST()
Dwritertest.cpp145 typedef char Ch; typedef in OStreamWrapper
149 Ch Peek() const { assert(false); return '\0'; } in Peek()
150 Ch Take() { assert(false); return '\0'; } in Take()
153 Ch* PutBegin() { assert(false); return 0; } in PutBegin()
154 void Put(Ch c) { os_.put(c); } in Put()
156 size_t PutEnd(Ch*) { assert(false); return 0; } in PutEnd() argument
337 static const UTF32<>::Ch s[] = { 0x110000, 0 }; // Out of U+0000 to U+10FFFF in TEST()
345 static const UTF32<>::Ch s[] = { 0x110000, 0 }; // Out of U+0000 to U+10FFFF in TEST()
Ddocumenttest.cpp243 typedef char Ch; typedef
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dstream.md245 typename Ch; //!< Character type of the stream.
248 Ch Peek() const;
251 Ch Take();
259 Ch* PutBegin();
262 void Put(Ch c);
270 size_t PutEnd(Ch* begin);
285 typedef char Ch;
290 Ch Peek() const { // 1
292 return c == std::char_traits<char>::eof() ? '\0' : (Ch)c;
295 Ch Take() { // 2
[all …]
Ddom.md88 GenericDocument& GenericDocument::ParseInsitu(Ch* str);
91 GenericDocument& GenericDocument::ParseInsitu(Ch* str);
95 GenericDocument& GenericDocument::Parse(const Ch* str);
99 GenericDocument& GenericDocument::Parse(const Ch* str);
102 GenericDocument& GenericDocument::Parse(const Ch* str);
Dinternals.md51 | `Ch* str` | Pointer to the string (may own) |4 |8 |
119 | ShortString (Ch=char) | |32-bit|64-bit|
121 | `Ch str[MaxChars]` | String buffer |11 |15 |
122 | `Ch invLength` | MaxChars - Length |1 |1 |
Dsax.md109 bool String(const Ch* str, SizeType length, bool copy);
111 bool Key(const Ch* str, SizeType length, bool copy);
258 The `SourceEncoding` template parameter specifies the encoding to be used in `String(const Ch*, ...…
272 …tly the same as `Writer`, expect that `PrettyWriter` provides a `SetIndent(Ch indentChar, unsigned…
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstrfunc.h29 template <typename Ch>
30 inline SizeType StrLen(const Ch* s) { in StrLen()
31 const Ch* p = s; in StrLen()
/packages/modules/GeoTZ/validation/geonames/known_diffs/
Dknown_diffs1000.prototxt1259 cityName: "Y\303\252n Ch\303\242u"
1529 cityName: "Thanh Ch\306\260\306\241ng"
1771 cityName: "Qu\341\273\263 Ch\303\242u"
2026 cityName: "Ph\341\273\221 Ch\303\242u"
2356 cityName: "M\303\271 Cang Ch\341\272\243i"
2371 cityName: "M\341\273\231c Ch\303\242u"
2446 cityName: "Lao Ch\341\272\243i"
2476 cityName: "Lang Ch\303\241nh"
2866 cityName: "Di\341\273\205n Ch\303\242u"
2911 cityName: "Ch\303\272c S\306\241n"
[all …]

12