Home
last modified time | relevance | path

Searched refs:UTF8 (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp31 struct ParseBoolHandler : BaseReaderHandler<UTF8<>, ParseBoolHandler<expect> > {
57 struct ParseIntHandler : BaseReaderHandler<UTF8<>, ParseIntHandler> {
66 struct ParseUintHandler : BaseReaderHandler<UTF8<>, ParseUintHandler> {
75 struct ParseInt64Handler : BaseReaderHandler<UTF8<>, ParseInt64Handler> {
84 struct ParseUint64Handler : BaseReaderHandler<UTF8<>, ParseUint64Handler> {
93 struct ParseDoubleHandler : BaseReaderHandler<UTF8<>, ParseDoubleHandler> {
514 TEST_STRING(UTF8<>, "", "\"\""); in TEST()
515 TEST_STRING(UTF8<>, "Hello", "\"Hello\""); in TEST()
516 TEST_STRING(UTF8<>, "Hello\nWorld", "\"Hello\\nWorld\""); in TEST()
517 TEST_STRING(UTF8<>, "\"\\/\b\f\n\r\t", "\"\\\"\\\\/\\b\\f\\n\\r\\t\""); in TEST()
[all …]
Dencodedstreamtest.cpp92 EXPECT_TRUE(UTF8<>::Decode(s, &expected)); in TestEncodedInputStream()
110 EXPECT_TRUE(UTF8<>::Decode(s, &expected)); in TestEncodedInputStream()
132 EXPECT_TRUE(UTF8<>::Decode(s, &expected)); in TestAutoUTFInputStream()
151 EXPECT_TRUE(UTF8<>::Decode(s, &expected)); in TestAutoUTFInputStream()
172 bool success = Transcoder<UTF8<>, MemoryEncoding>::Transcode(s, eos); in TestEncodedOutputStream()
187 bool success = Transcoder<UTF8<>, MemoryEncoding>::Transcode(s, eos); in TestEncodedOutputStream()
206 bool success = Transcoder<UTF8<>, AutoUTF<unsigned> >::Transcode(s, eos); in TestAutoUTFOutputStream()
221 bool success = Transcoder<UTF8<>, AutoUTF<unsigned> >::Transcode(s, eos); in TestAutoUTFOutputStream()
252 TestEncodedInputStream<UTF8<>, UTF8<> >("utf8.json"); in TEST_F()
253 TestEncodedInputStream<UTF8<>, UTF8<> >("utf8bom.json"); in TEST_F()
[all …]
Ddocumenttest.cpp71 typedef GenericDocument<UTF8<>, Allocator, StackAllocator> DocumentType; in ParseTest()
121 EncodedInputStream<UTF8<>, FileReadStream> eis(bis); in TEST()
124 d.ParseStream<0, UTF8<> >(eis); in TEST()
137 typedef EncodedOutputStream<UTF8<>, StringBuffer> OutputStream; in TEST()
139 Writer<OutputStream, UTF16<>, UTF8<> > writer(eos); in TEST()
263 typedef GenericDocument<UTF8<>, MemoryPoolAllocator<>, MemoryPoolAllocator<> > DocumentType; in TEST()
354 typedef GenericDocument<UTF8<>, Allocator> Document; in TYPED_TEST()
388 typedef GenericDocument<UTF8<>, Allocator> Document; in TYPED_TEST()
421 typedef UTF8<> Encoding;
447 typedef GenericDocument<UTF8<>, Allocator> Document; in TYPED_TEST()
[all …]
Dencodingstest.cpp286 TEST(EncodingsTest, UTF8) { in TEST() argument
291 UTF8<>::Encode(os, codepoint); in TEST()
318 bool result = UTF8<>::Decode(is, &decodedCodepoint); in TEST()
329 bool result = UTF8<>::Validate(is, os2); in TEST()
339 GenericStringBuffer<UTF8<> > utf8os; in TEST()
351 UTF8<>::Encode(utf8os, codepoint); in TEST()
Dwritertest.cpp117 Writer<StringBuffer, UTF16<>, UTF8<> > writer(buffer); in TEST()
118 GenericReader<UTF8<>, UTF16<> > reader; in TEST()
127 Writer<StringBuffer, UTF8<>, ASCII<> > writer(buffer); in TEST()
133 GenericReader<ASCII<>, UTF8<> > reader2; in TEST()
325 Writer<GenericStringBuffer<UTF16<> >, UTF8<>, UTF16<> > writer(buffer); in TEST()
Djsoncheckertest.cpp70 …GenericDocument<UTF8<>, CrtAllocator> document; // Use Crt allocator to check exception-safety (no… in TEST()
90 …GenericDocument<UTF8<>, CrtAllocator> document; // Use Crt allocator to check exception-safety (no… in TEST()
Dvaluetest.cpp40 typedef GenericValue<UTF8<>, CrtAllocator> Value; in TEST()
76 typedef GenericValue<UTF8<>, CrtAllocator> Value; in TEST()
185 GenericValue<UTF8<>, CrtAllocator> y; in TEST()
186 GenericDocument<UTF8<>, CrtAllocator> z(&crtAllocator); in TEST()
264 TestCopyFrom<GenericValue<UTF8<>, CrtAllocator> >(); in TEST()
1016 GenericValue<UTF8<>, CrtAllocator> othername("A"); in TEST()
1202 GenericValue<UTF8<>, CrtAllocator> othername("A"); in TEST()
1285 typedef GenericValue<UTF8<>, CrtAllocator> V; in TEST()
Dnamespacetest.cpp36 typedef GenericDocument<UTF8<>, CrtAllocator> DocumentType; in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/prettyauto/
Dprettyauto.cpp27 GenericReader<AutoUTF<unsigned>, UTF8<> > reader; // CHANGED in main()
40 PrettyWriter<OutputStream, UTF8<>, AutoUTF<unsigned> > writer(eos); // CHANGED in main()
45 PrettyWriter<OutputStream, UTF8<>, UTF16LE<> > writer(eos); // CHANGED in main()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dstream.md37 Note that, `StringStream` is a typedef of `GenericStringStream<UTF8<> >`, user may use another enco…
53 …city automatically. The default capacity is 256 characters (256 bytes for UTF8, 512 bytes for UTF1…
62 Similarly, `StringBuffer` is a typedef of `GenericStringBuffer<UTF8<> >`.
136 …as two template parameters. The first one is a `Encoding` class, such as `UTF8`, `UTF16LE`, define…
153 Document d; // Document is GenericDocument<UTF8<> >
168 Document d; // Document is GenericDocument<UTF8<> >
179 Writer<OutputStream, UTF32LE<>, UTF8<>> writer(eos);
206 Document d; // Document is GenericDocument<UTF8<> >
230 Writer<OutputStream, UTF8<>, AutoUTF<> > writer;
Dencoding.md42 struct UTF8;
65 …essing text in memory, we normally use `UTF8`, `UTF16` or `UTF32`. For processing text via I/O, we…
67 …g to be used to represent JSON string in memory. So normally we will use `UTF8`, `UTF16` or `UTF32…
100 Document d; // UTF8<>
135 if (!Transcoder::Transcode<UTF8<>, UTF16<> >(source, target)) {
Ddom.md24 typedef GenericValue<UTF8<> > Value;
25 typedef GenericDocument<UTF8<> > Document;
34 …memory. Possible options are `UTF8`, `UTF16`, `UTF32`. Note that, these 3 types are also template …
265 typedef GenericDocument<UTF8<>, MemoryPoolAllocator<>, MemoryPoolAllocator<>> DocumentType;
Dsax.md146 typedef GenericReader<UTF8<>, UTF8<> > Reader;
154 GenericReader<UTF8<>, UTF16<> > reader;
246 template<typename OutputStream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>,…
303 : public BaseReaderHandler<UTF8<>, MessageHandler> {
Dfeatures.md37 * By default the character types are `char` for UTF8, `wchar_t` for UTF16, `uint32_t` for UTF32.
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp168 GenericDocument<UTF8<>, CrtAllocator> doc; in TEST_F()
177 EncodedInputStream<UTF8<>, MemoryStream> is(ms); in TEST_F()
179 doc.ParseStream<0, UTF8<> >(is); in TEST_F()
332 result &= UTF8<>::Validate(is, os); in TEST_F()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dstringbuffer.h83 typedef GenericStringBuffer<UTF8<> > StringBuffer;
87 inline void PutN(GenericStringBuffer<UTF8<> >& stream, char c, size_t n) { in PutN()
Dprettywriter.h34 template<typename OutputStream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>,…
Drapidjson.h595 typedef GenericStringStream<UTF8<> > StringStream;
636 typedef GenericInsituStringStream<UTF8<> > InsituStringStream;
Dwriter.h53 template<typename OutputStream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>,…
Dencodings.h96 struct UTF8 { struct
555 #define RAPIDJSON_ENCODINGS_FUNC(x) UTF8<Ch>::x, UTF16LE<Ch>::x, UTF16BE<Ch>::x, UTF32LE<Ch>::x, UT…
Dreader.h180 template<typename Encoding = UTF8<>, typename Derived = void>
1440 typedef GenericReader<UTF8<>, UTF8<> > Reader;
Dencodedstream.h93 #define RAPIDJSON_ENCODINGS_FUNC(x) UTF8<Ch>::x, UTF16LE<Ch>::x, UTF16BE<Ch>::x, UTF32LE<Ch>::x, UT…
Dpointer.h813 if (!Transcoder<UTF8<>, EncodingType>().Validate(is, os) || !is.IsValid()) { in Parse()
928 if (!Transcoder<EncodingType, UTF8<> >().Validate(source, target)) in Stringify()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/messagereader/
Dmessagereader.cpp21 : public BaseReaderHandler<UTF8<>, MessageHandler> {
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dutilityclass.dot22 Encoding -> { UTF8; UTF16; UTF32; ASCII; AutoUTF }

12