ion-binary-rs 0.8.13

Pure Rust parser, encoder and hasher for Amazon's Ion binary format.
Documentation
// WARNING! This file has inconsistent newlines!
// Some lines have CR LF, some have LF.
// Ion parsers must normalize newlines in clob to LF.


// These clobs are empty: the linefeeds are escaped.
[
{{""}},

// This has LF escaped-away
{{"\
"}},

// This has CR LF escaped-away
{{"\
"}},

// This has CR escaped-away
{{"\
"}},

// This has LF escaped-away
{{'''\
'''}},

// This has CR LF escaped-away
{{'''\
'''}},

// This has CR escaped-away
{{'''\
'''}},
]


// These clobs include the newline codepoint.
[
{{"\n"}},
{{'''\n'''}},
{{"\x0a"}},
{{"\x0A"}},

// This has LF
{{'''
'''}},

// This has CR LF
{{'''
'''}},

// This has CR
{{'''
'''}},
]


// These clobs include two newline codepoints.
[
{{"\n\n"}},

// This has LF
{{'''\n
'''}},

// This has CR LF
{{'''\n
'''}},

// This has LF CR
{{'''

'''}},

// This has CR
{{'''
\n'''}},

// This has CR CR
{{'''

'''}},

// This has CR CR LF
{{'''

'''}},
]


[
{{"x"}},

// This has LF escaped-away
{{"x\
"}},

// This has CR LF escaped-away
{{"x\
"}},

// This has CR escaped-away
{{"x\
"}},
]


// Now we need to be careful with escapes.
[
{{"\r\n"}},

// This has LF
{{'''\r
'''}},

// This has CR LF
{{'''\r
'''}},

// This has CR
{{'''\r
'''}},
]


// Now we need to be careful with escapes.
[
{{"\r\n"}},

// This has LF
{{"\r\
\n"}},

// This has CR LF
{{"\r\
\n"}},

// This has CR
{{"\r\
\n"}},
]