Searched refs:Ch (Results 1 - 20 of 20) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Dmemorystream.h35 typedef char Ch; // byte typedef in struct:MemoryStream
37 MemoryStream(const Ch *src, size_t size) : src_(src), begin_(src), end_(src + size), size_(size) {}
39 Ch Peek() const { return (src_ == end_) ? '\0' : *src_; }
40 Ch Take() { return (src_ == end_) ? '\0' : *src_++; }
43 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
44 void Put(Ch) { RAPIDJSON_ASSERT(false); }
46 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; }
49 const Ch* Peek4() const {
53 const Ch* src_; //!< Current read position.
54 const Ch* begin
[all...]
H A Dencodedstream.h34 RAPIDJSON_STATIC_ASSERT(sizeof(typename InputByteStream::Ch) == 1);
36 typedef typename Encoding::Ch Ch; typedef in class:EncodedInputStream
42 Ch Peek() const { return current_; }
43 Ch Take() { Ch c = current_; current_ = Encoding::Take(is_); return c; }
47 void Put(Ch) { RAPIDJSON_ASSERT(false); }
49 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
50 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; }
57 Ch current
69 typedef typename Encoding::Ch Ch; typedef in class:EncodedOutputStream
104 typedef CharType Ch; typedef in class:AutoUTFInputStream
202 typedef CharType Ch; typedef in class:AutoUTFOutputStream
[all...]
H A Dfilereadstream.h29 typedef char Ch; //!< Character type (byte). typedef in class:FileReadStream
43 Ch Peek() const { return *current_; }
44 Ch Take() { Ch c = *current_; Read(); return c; }
48 void Put(Ch) { RAPIDJSON_ASSERT(false); }
50 Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
51 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; }
54 const Ch* Peek4() const {
77 Ch *buffer_;
79 Ch *bufferLast
[all...]
H A Dstringbuffer.h37 typedef typename Encoding::Ch Ch; typedef in class:GenericStringBuffer
50 void Put(Ch c) { *stack_.template Push<Ch>() = c; }
56 *stack_.template Push<Ch>() = '\0';
58 stack_.template Pop<Ch>(1);
60 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); }
61 void Pop(size_t count) { stack_.template Pop<Ch>(count); }
63 const Ch* GetStrin
[all...]
H A Dmemorybuffer.h38 typedef char Ch; // byte typedef in struct:GenericMemoryBuffer
42 void Put(Ch c) { *stack_.template Push<Ch>() = c; }
47 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); }
48 void Pop(size_t count) { stack_.template Pop<Ch>(count); }
50 const Ch* GetBuffer() const {
51 return stack_.template Bottom<Ch>();
H A Dencodings.h40 typename Ch; //! Type of character. A "character" is actually a code unit in unicode's definition.
73 static Ch Take(InputByteStream& is);
81 static void Put(OutputByteStream& os, Ch c);
97 typedef CharType Ch; typedef in struct:UTF8
104 os.Put(static_cast<Ch>(codepoint & 0xFF));
106 os.Put(static_cast<Ch>(0xC0 | ((codepoint >> 6) & 0xFF)));
107 os.Put(static_cast<Ch>(0x80 | ((codepoint & 0x3F))));
110 os.Put(static_cast<Ch>(0xE0 | ((codepoint >> 12) & 0xFF)));
111 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F)));
112 os.Put(static_cast<Ch>(
242 typedef CharType Ch; typedef in struct:UTF16
373 typedef CharType Ch; typedef in struct:UTF32
484 typedef CharType Ch; typedef in struct:ASCII
551 typedef CharType Ch; typedef in struct:AutoUTF
[all...]
H A Drapidjson.h511 typename Ch; //!< Character type of the stream.
514 Ch Peek() const;
517 Ch Take();
525 Ch* PutBegin();
528 void Put(Ch c);
536 size_t PutEnd(Ch* begin);
558 template<typename Stream, typename Ch>
559 inline void PutN(Stream& stream, Ch c, size_t n) {
572 typedef typename Encoding::Ch Ch; typedef in struct:GenericStringStream
606 typedef typename Encoding::Ch Ch; typedef in struct:GenericInsituStringStream
[all...]
H A Dpointer.h74 typedef typename EncodingType::Ch Ch; //!< Character type from Value typedef in class:GenericPointer
90 const Ch* name; //!< Name of the token. It has null character at the end but it can contain null character.
106 explicit GenericPointer(const Ch* source, Allocator* allocator = 0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOffset_(), parseErrorCode_(kPointerParseErrorNone) {
117 explicit GenericPointer(const std::basic_string<Ch>& source, Allocator* allocator = 0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOffset_(), parseErrorCode_(kPointerParseErrorNone) {
129 GenericPointer(const Ch* source, size_t length, Allocator* allocator = 0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOffset_(), parseErrorCode_(kPointerParseErrorNone) {
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 {
226 \param name Name (const Ch*) t
[all...]
H A Dprettywriter.h38 typedef typename Base::Ch Ch; typedef in class:PrettyWriter
53 PrettyWriter& SetIndent(Ch indentChar, unsigned indentCharCount) {
73 bool String(const Ch* str, SizeType length, bool copy = false) {
80 bool String(const std::basic_string<Ch>& str) {
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)); }
142 bool Key(const Ch* str) { return Key(str, internal::StrLen(str)); }
192 Ch indentChar_;
H A Ddocument.h260 typedef CharType Ch; //!< character type of the string typedef in struct:GenericStringRef
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. typedef in class:GenericValue
428 typedef GenericStringRef<Ch> StringRefType; //!< Reference to a constant string
552 GenericValue(const Ch* s, SizeType length) RAPIDJSON_NOEXCEPT : data_(), flags_() { SetStringRaw(StringRef(s, length)); }
558 GenericValue(const Ch* s, SizeType length, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(s, length), allocator); }
561 GenericValue(const Ch*s, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(s), allocator); } argument
567 GenericValue(const std::basic_string<Ch>
1774 typedef typename Encoding::Ch Ch; //!< Character type derived from Encoding. typedef in class:GenericDocument
[all...]
H A Dwriter.h56 typedef typename SourceEncoding::Ch Ch; typedef in class:Writer
122 bool String(const Ch* str, SizeType length, bool copy = false) {
129 bool String(const std::basic_string<Ch>& str) {
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)); }
176 bool Key(const Ch* str) { return Key(str, internal::StrLen(str)); }
244 bool WriteString(const Ch* str, SizeType length) {
261 const Ch c = is.Peek();
293 else if ((sizeof(Ch)
[all...]
H A Dreader.h155 typename Ch;
164 bool String(const Ch* str, SizeType length, bool copy);
166 bool Key(const Ch* str, SizeType length, bool copy);
182 typedef typename Encoding::Ch Ch; typedef in struct:BaseReaderHandler
194 bool String(const Ch*, SizeType, bool) { return static_cast<Override&>(*this).Default(); } argument
196 bool Key(const Ch* str, SizeType len, bool copy) { return static_cast<Override&>(*this).String(str, len, copy); }
376 typedef typename SourceEncoding::Ch Ch; //!< SourceEncoding character type typedef in class:GenericReader
595 Ch
615 typedef CharType Ch; typedef in class:GenericReader::StackStream
[all...]
H A Dfilewritestream.h29 typedef char Ch; //!< Character type. Only support char. typedef in class:FileWriteStream
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
H A Dstrfunc.h24 /*! \tparam Ch Character type (e.g. char, wchar_t, short)
29 template <typename Ch>
30 inline SizeType StrLen(const Ch* s) {
31 const Ch* p = s;
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
H A Dunittest.h44 template <typename Ch>
45 inline unsigned StrLen(const Ch* s) {
46 const Ch* p = s;
51 template<typename Ch>
52 inline int StrCmp(const Ch* s1, const Ch* s2) {
57 template <typename Ch>
58 inline Ch* StrDup(const Ch* str) {
59 size_t bufferSize = sizeof(Ch) * (StrLe
[all...]
H A Dprettywritertest.cpp102 typedef char Ch; typedef in class:OStreamWrapper
106 Ch Peek() const { assert(false); return '\0'; }
107 Ch Take() { assert(false); return '\0'; }
110 Ch* PutBegin() { assert(false); return 0; }
111 void Put(Ch c) { os_.put(c); }
113 size_t PutEnd(Ch*) { assert(false); return 0; }
H A Dwritertest.cpp145 typedef char Ch; typedef in class:OStreamWrapper
149 Ch Peek() const { assert(false); return '\0'; }
150 Ch Take() { assert(false); return '\0'; }
153 Ch* PutBegin() { assert(false); return 0; }
154 void Put(Ch c) { os_.put(c); }
156 size_t PutEnd(Ch*) { assert(false); return 0; }
337 static const UTF32<>::Ch s[] = { 0x110000, 0 }; // Out of U+0000 to U+10FFFF
345 static const UTF32<>::Ch s[] = { 0x110000, 0 }; // Out of U+0000 to U+10FFFF
H A Dreadertest.cpp450 ~ParseStringHandler() { EXPECT_TRUE(str_ != 0); if (copy_) free(const_cast<typename Encoding::Ch*>(str_)); }
456 bool String(const typename Encoding::Ch* str, size_t length, bool copy) {
459 str_ = (typename Encoding::Ch*)malloc((length + 1) * sizeof(typename Encoding::Ch));
460 memcpy(const_cast<typename Encoding::Ch*>(str_), str, (length + 1) * sizeof(typename Encoding::Ch));
469 const typename Encoding::Ch* str_;
477 Encoding::Ch* buffer = StrDup(x); \
482 EXPECT_EQ(0, StrCmp<Encoding::Ch>(e, h.str_)); \
489 EXPECT_EQ(0, StrCmp<Encoding::Ch>(
973 typedef typename Encoding::Ch Ch; typedef in class:CustomStringStream
1021 typedef char Ch; typedef in class:IStreamWrapper
1100 typedef typename Encoding::Ch Ch; typedef in struct:IterativeParsingReaderHandler
[all...]
H A Dencodingstest.cpp344 const UTF16<>::Ch* encodedStr = os.GetString();
356 UTF16<>::Ch buffer[3], *p = &buffer[0];
363 *p++ = static_cast<UTF16<>::Ch>(decodedCodepoint);
366 *p++ = static_cast<UTF16<>::Ch>(0xD7C0 + (decodedCodepoint >> 10));
367 *p++ = static_cast<UTF16<>::Ch>(0xDC00 + (decodedCodepoint & 0x3FF));
403 const UTF32<>::Ch* encodedStr = os.GetString();
H A Ddocumenttest.cpp243 typedef char Ch; typedef in struct:OutputStringStream

Completed in 191 milliseconds