Home
last modified time | relevance | path

Searched refs:UTF16 (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodingstest.cpp337 TEST(EncodingsTest, UTF16) { in TEST() argument
338 GenericStringBuffer<UTF16<> > os, os2; in TEST()
343 UTF16<>::Encode(os, codepoint); in TEST()
344 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()
376 GenericStringStream<UTF16<> > is(encodedStr); in TEST()
378 bool result = UTF16<>::Decode(is, &decodedCodepoint); in TEST()
[all …]
Dreadertest.cpp524 TEST_STRING(UTF16<>, L"", L"\"\""); in TEST()
525 TEST_STRING(UTF16<>, L"Hello", L"\"Hello\""); in TEST()
526 TEST_STRING(UTF16<>, L"Hello\nWorld", L"\"Hello\\nWorld\""); in TEST()
527 TEST_STRING(UTF16<>, L"\"\\/\b\f\n\r\t", L"\"\\\"\\\\/\\b\\f\\n\\r\\t\""); in TEST()
528 TEST_STRINGARRAY(UTF16<>, wchar_t, ARRAY(0x0024, 0x0000), L"\"\\u0024\""); in TEST()
529 TEST_STRINGARRAY(UTF16<>, wchar_t, ARRAY(0x00A2, 0x0000), L"\"\\u00A2\""); // Cents sign U+00A2 in TEST()
530 TEST_STRINGARRAY(UTF16<>, wchar_t, ARRAY(0x20AC, 0x0000), L"\"\\u20AC\""); // Euro sign U+20AC in TEST()
531 …TEST_STRINGARRAY(UTF16<>, wchar_t, ARRAY(0xD834, 0xDD1E, 0x0000), L"\"\\uD834\\uDD1E\""); // G c… in TEST()
563 GenericReader<UTF8<>, UTF16<> > reader; in TEST()
564 ParseStringHandler<UTF16<> > h; in TEST()
[all …]
Dencodedstreamtest.cpp254 TestEncodedInputStream<UTF16LE<>, UTF16<> >("utf16le.json"); in TEST_F()
255 TestEncodedInputStream<UTF16LE<>, UTF16<> >("utf16lebom.json"); in TEST_F()
256 TestEncodedInputStream<UTF16BE<>, UTF16<> >("utf16be.json"); in TEST_F()
257 TestEncodedInputStream<UTF16BE<>, UTF16<> >("utf16bebom.json"); in TEST_F()
289 TestEncodedOutputStream<UTF16LE<>, UTF16<> >("utf16le.json", false); in TEST_F()
290 TestEncodedOutputStream<UTF16LE<>, UTF16<> >("utf16lebom.json",true); in TEST_F()
291 TestEncodedOutputStream<UTF16BE<>, UTF16<> >("utf16be.json", false); in TEST_F()
292 TestEncodedOutputStream<UTF16BE<>, UTF16<> >("utf16bebom.json",true); in TEST_F()
Dwritertest.cpp117 Writer<StringBuffer, UTF16<>, UTF8<> > writer(buffer); in TEST()
118 GenericReader<UTF8<>, UTF16<> > reader; in TEST()
324 GenericStringBuffer<UTF16<> > buffer; in TEST()
325 Writer<GenericStringBuffer<UTF16<> >, UTF8<>, UTF16<> > writer(buffer); in TEST()
Ddocumenttest.cpp123 GenericDocument<UTF16<> > d; in TEST()
130 GenericValue<UTF16<> >& v = d[L"en"]; in TEST()
139 Writer<OutputStream, UTF16<>, UTF8<> > writer(eos); in TEST()
293 GenericDocument< UTF16<> > json; in TEST()
297 GenericValue< UTF16<> >& v = json[0]; in TEST()
300 GenericValue< UTF16<> >& s = v[L"created_at"]; in TEST()
Dpointertest.cpp306 GenericPointer<GenericValue<UTF16<> > > p(L"#/%C2%A2"); in TEST()
315 GenericPointer<GenericValue<UTF16<> > > p(L"#/%E2%82%AC"); in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dencoding.md45 struct UTF16;
65 For processing text in memory, we normally use `UTF8`, `UTF16` or `UTF32`. For processing text via …
67 …used to represent JSON string in memory. So normally we will use `UTF8`, `UTF16` or `UTF32` for th…
72 typedef GenericDocument<UTF16<> > WDocument;
73 typedef GenericValue<UTF16<> > WValue;
82 For `UTF16(LE|BE)`, `UTF32(LE|BE)`, the `CharType` must be integer type of at least 2 and 4 bytes …
84 Note that C++11 introduces `char16_t` and `char32_t`, which can be used for `UTF16` and `UTF32` res…
131 GenericStringBuffer<UTF16<> > target;
135 if (!Transcoder::Transcode<UTF8<>, UTF16<> >(source, target)) {
Ddom.md34 …he encoding of JSON String value in memory. Possible options are `UTF8`, `UTF16`, `UTF32`. Note th…
41 typedef GenericDocument<UTF16<> > WDocument;
42 typedef GenericValue<UTF16<> > WValue;
Dfeatures.md37 * By default the character types are `char` for UTF8, `wchar_t` for UTF16, `uint32_t` for UTF32.
Dsax.md154 GenericReader<UTF8<>, UTF16<> > reader;
157 Note that, the default character type of `UTF16` is `wchar_t`. So this `reader`needs to call `Strin…
Dstream.md53 …The default capacity is 256 characters (256 bytes for UTF8, 512 bytes for UTF16, etc.). User can p…
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dutilityclass.dot22 Encoding -> { UTF8; UTF16; UTF32; ASCII; AutoUTF }
23 UTF16 -> { UTF16LE; UTF16BE }
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dencodings.h241 struct UTF16 { struct
298 struct UTF16LE : UTF16<CharType> { argument
330 struct UTF16BE : UTF16<CharType> {