Home
last modified time | relevance | path

Searched refs:Encoding (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp447 template <typename Encoding>
448 struct ParseStringHandler : BaseReaderHandler<Encoding, ParseStringHandler<Encoding> > {
450 …~ParseStringHandler() { EXPECT_TRUE(str_ != 0); if (copy_) free(const_cast<typename Encoding::Ch*>… 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_;
475 #define TEST_STRING(Encoding, e, x) \ in TEST() argument
477 Encoding::Ch* buffer = StrDup(x); \ in TEST()
478 GenericInsituStringStream<Encoding> is(buffer); \ in TEST()
[all …]
Ddocumenttest.cpp421 typedef UTF8<> Encoding;
422 typedef GenericDocument<Encoding, Allocator> Document;
428 typedef GenericReader<Encoding, Encoding, Allocator> Reader;
430 GenericStringStream<Encoding> is("[\"one\", \"two\", \"three\"]");
518 typedef UTF8<> Encoding;
519 typedef GenericDocument<Encoding, Allocator> Document;
525 typedef GenericReader<Encoding, Encoding, Allocator> Reader;
527 GenericStringStream<Encoding> is("[\"one\", \"two\", \"three\"]");
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h69 template <typename Encoding, typename Allocator>
72 template <typename Encoding, typename Allocator, typename StackAllocator>
81 template <typename Encoding, typename Allocator>
83 GenericValue<Encoding, Allocator> name; //!< name of member (must be a string)
84 GenericValue<Encoding, Allocator> value; //!< value of member.
111 template <bool Const, typename Encoding, typename Allocator>
114 , typename internal::MaybeAddConst<Const,GenericMember<Encoding,Allocator> >::Type> {
116 friend class GenericValue<Encoding,Allocator>;
119 typedef GenericMember<Encoding,Allocator> PlainType;
127 typedef GenericMemberIterator<true,Encoding,Allocator> ConstIterator;
[all …]
Dencodedstream.h32 template <typename Encoding, typename InputByteStream>
36 typedef typename Encoding::Ch Ch;
39 current_ = Encoding::TakeBOM(is_); in EncodedInputStream()
43 Ch Take() { Ch c = current_; current_ = Encoding::Take(is_); return c; } in Take()
65 template <typename Encoding, typename OutputByteStream>
69 typedef typename Encoding::Ch Ch;
73 Encoding::PutBOM(os_); in os_()
76 void Put(Ch c) { Encoding::Put(os_, c); } in Put()
Drapidjson.h570 template <typename Encoding>
572 typedef typename Encoding::Ch Ch;
589 template <typename Encoding>
590 struct StreamTraits<GenericStringStream<Encoding> > {
604 template <typename Encoding>
606 typedef typename Encoding::Ch Ch;
630 template <typename Encoding>
631 struct StreamTraits<GenericInsituStringStream<Encoding> > {
Dstringbuffer.h34 template <typename Encoding, typename Allocator = CrtAllocator>
37 typedef typename Encoding::Ch Ch;
Dencodings.h605 template<typename Encoding>
606 struct Transcoder<Encoding, Encoding> {
615 return Encoding::Validate(is, os); // source/target encoding are the same
Dreader.h180 template<typename Encoding = UTF8<>, typename Derived = void>
182 typedef typename Encoding::Ch Ch;
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Ddom.md14 template <typename Encoding, typename Allocator = MemoryPoolAllocator<> >
19 template <typename Encoding, typename Allocator = MemoryPoolAllocator<> >
20 class GenericDocument : public GenericValue<Encoding, Allocator> {
32 ## Encoding {#Encoding}
34Encoding` parameter specifies the encoding of JSON String value in memory. Possible options are `U…
78 // (2) Using the same Encoding for stream
97 // (7) Normal parsing of a string, using same Encoding of Document
121 …er defines what encoding is in the stream. This can be differed to the `Encoding` of the `Document…
Dencoding.md1 # Encoding chapter
67 …en using the DOM-style API, the `Encoding` template parameter in `GenericValue<Encoding>` and `Gen…
76 For a detail example, please check the example in [DOM's Encoding](doc/stream.md) section.
Dstream.md136 `EncodedInputStream` has two template parameters. The first one is a `Encoding` class, such as `UTF…
Dinternals.md21 Both SAX and DOM APIs depends on 3 additional concepts: `Allocator`, `Encoding` and `Stream`. Their…
Dtutorial.md511 2. [Encoding](doc/encoding.md) defines which character encoding is used in streams and memory. Rapi…
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dutilityclass.dot19 Encoding [label="<<concept>>\nEncoding"]
22 Encoding -> { UTF8; UTF16; UTF32; ASCII; AutoUTF }
/packages/apps/Test/connectivity/sl4n/rapidjson/
DCHANGELOG.md53 * ASCII Encoding (#70)