Differences From Artifact [7633105928]:
- File
tests/serialization.xml
— part of check-in
[301ee63212]
at
2011-11-20 18:41:25
on branch trunk
— Make OFString a class cluster.
It is a class cluster now, but there is still much to improve. (user: js, size: 2805) [annotate] [blame] [check-ins using]
To Artifact [12b8649327]:
- File tests/serialization.xml — part of check-in [d8a6ca3fbd] at 2011-11-21 16:47:00 on branch trunk — There is no need to hash 32 bit per character if Unicode has only 24. (user: js, size: 2805) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 |
<?xml version='1.0' encoding='UTF-8'?>
<serialization xmlns='https://webkeks.org/objfw/serialization' version='0'>
<OFMutableDictionary>
<key>
<OFList>
<OFString>Hello</OFString>
<OFString>Wo
ld!
How are you?</OFString>
<OFURL>https://webkeks.org/</OFURL>
<OFXMLElement name='x'>
| > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<?xml version='1.0' encoding='UTF-8'?>
<serialization xmlns='https://webkeks.org/objfw/serialization' version='0'>
<OFMutableDictionary>
<key>
<OFArray>
<OFString>Qu"xbar
test</OFString>
<OFNumber type='signed'>1234</OFNumber>
<OFNumber type='double'>0x1.34a456d5cfaadp+10</OFNumber>
<OFMutableString>asd</OFMutableString>
<OFDate>0x1.34a456d5cfaadp+10</OFDate>
</OFArray>
</key>
<object>
<OFString>Hello</OFString>
</object>
<key>
<OFString>Blub</OFString>
</key>
<object>
<OFString>B"la</OFString>
</object>
<key>
<OFDataArray>MDEyMzQ1Njc4OTo7PEFCQ0RFRkdISklLTE1OT1BRUlNUVVZXWFla</OFDataArray>
</key>
<object>
<OFString>data</OFString>
</object>
<key>
<OFList>
<OFString>Hello</OFString>
<OFString>Wo
ld!
How are you?</OFString>
<OFURL>https://webkeks.org/</OFURL>
<OFXMLElement name='x'>
|
| ︙ | ︙ | |||
45 46 47 48 49 50 51 |
</namespaces>
</OFXMLElement>
<OFXMLCDATA><![CDATA[<]]></OFXMLCDATA>
</OFMutableArray>
</children>
</OFXMLElement>
<OFSet>
| < > > > > < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
</namespaces>
</OFXMLElement>
<OFXMLCDATA><![CDATA[<]]></OFXMLCDATA>
</OFMutableArray>
</children>
</OFXMLElement>
<OFSet>
<OFString>foo</OFString>
<OFString>bar</OFString>
</OFSet>
<OFCountedSet>
<object count='2'>
<OFString>foo</OFString>
</object>
<object count='1'>
<OFString>bar</OFString>
</object>
</OFCountedSet>
</OFList>
</key>
<object>
<OFString>list</OFString>
</object>
</OFMutableDictionary>
</serialization>
|