From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- intl/icu/source/test/testdata/test4.ucm | 66 +++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 intl/icu/source/test/testdata/test4.ucm (limited to 'intl/icu/source/test/testdata/test4.ucm') diff --git a/intl/icu/source/test/testdata/test4.ucm b/intl/icu/source/test/testdata/test4.ucm new file mode 100644 index 0000000000..02cbfb09d4 --- /dev/null +++ b/intl/icu/source/test/testdata/test4.ucm @@ -0,0 +1,66 @@ +# Copyright (C) 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html +# ******************************************************************************* +# * Copyright (C) 2001-2003, International Business Machines +# * Corporation and others. All Rights Reserved. +# ******************************************************************************* +# +# test4.ucm +# +# Test file for MBCS conversion with four-byte codepage data. + + "test4" + 4 + 1 + "MBCS" + +# both subchars are single-byters, which does not make sense +# but works - adding subchar1 for tests but don't want to +# change old tests for a new subchar -- markus 20031028 + \xff + \xe1 + 0, 1:1, 5-9, e1, ff + 2:2 + 3:3 + a-f.p, ff + +CHARMAP + +# fromUnicode result is zero byte from other than U+0000 + \x00 |0 + +# fallback from non-zero to zero possible with extension table + \x00 |1 + +# nothing special + \x05 |0 + +# toUnicode result is fallback direct + \x06 |3 + +# toUnicode result is direct non-BMP code point + \x07 |0 + \x08 |3 + +#unassigned \x09 + +# toUnicode result is surrogate pair: test real pair, single unit, unassigned + \x01\x02\x03\x0a |0 + \x01\x02\x03\x0b |0 +#unassigned \x01\x02\x03\x0c + \x01\x02\x03\x0d |3 + \x01\x02\x03\x0e |3 +#unassigned \x01\x02\x03\x0f + +# non-mapping + \xe1 |2 +# add a mapping that turns the above's Unicode side into a prefix + \x06 |1 + +# many bytes, and bytes per UChar + \x01\x02\x03\x0a\x01\x02\x03\x0b\x01\x02\x03\x0c\x01\x02\x03\x0d\x01\x02\x03\x0e\x01\x02\x03\x0f\x01\x02\x03\x0a\x05\x06\x07 |0 + +# many UChars, and UChars per byte + \x08\x09 |0 + +END CHARMAP -- cgit v1.2.3