]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/testdata/test3.ucm
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / test / testdata / test3.ucm
CommitLineData
f3c0d7a5
A
1# Copyright (C) 2016 and later: Unicode, Inc. and others.
2# License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f 3# *******************************************************************************
51004dcb 4# * Copyright (C) 2001-2013, International Business Machines
b75a7d8f
A
5# * Corporation and others. All Rights Reserved.
6# *******************************************************************************
7#
8# test3.ucm
9#
10# Test file for MBCS conversion with three-byte codepage data.
374ca955 11# Also contains extension mappings (m:n).
b75a7d8f
A
12
13<code_set_name> "test3"
14<mb_cur_max> 3
15<mb_cur_min> 1
16<uconv_class> "MBCS"
374ca955
A
17<subchar> \xff
18<icu:state> 0, 1:1, 5-9, ff
19<icu:state> 2:2
51004dcb 20<icu:state> 4, a-f.p
b75a7d8f
A
21
22CHARMAP
23
24# fromUnicode result is zero byte from other than U+0000
25<U20ac> \x00 |0
26
27# nothing special
28<U0005> \x05 |0
29
374ca955
A
30# extensions
31<U00c0> \x05+\x01\x02\x0d |0
32<U00c0> \x05+\x01\x02\x0e |3
33<U00c0> \x05+\xff |3
34
b75a7d8f
A
35# toUnicode result is fallback direct
36<U0006> \x06 |3
37
38# toUnicode result is direct non-BMP code point
39<U101234> \x07 |0
40<Ufebcd> \x08 |3
41
374ca955
A
42# extensions
43<U101234>+<U50005>+<U60006> \x07+\x00+\x01\x02\x0f+\x09 |0
44<U101234>+<U50005> \x07+\x00+\x01\x02\x0e+\x05 |0
45<U101234>+<U60006> \x07+\x00+\x01\x02\x0f+\x06 |0
46<U101234>+<U70007> \x07+\x00+\x01\x02\x0f |1
47
b75a7d8f
A
48#unassigned \x09
49
374ca955
A
50# extensions where the first code point is unassigned, for replay testing
51#<U00c4><U0300> \x09+\x09 |0
52<U00c4><U00c4><U101234><U0005> \x05+\x01\x02\x0c |0
53
b75a7d8f
A
54# toUnicode result is surrogate pair: test real pair, single unit, unassigned
55<U23456> \x01\x02\x0a |0
56<U000b> \x01\x02\x0b |0
57#unassigned \x01\x02\x0c
58<U34567> \x01\x02\x0d |3
59<U000e> \x01\x02\x0e |3
60#unassigned \x01\x02\x0f
61
51004dcb
A
62# "good one-way" mappings
63<U0023> \x01\x02\x04 |4
64<U0023>+<UFE0E> \x01\x02\x04 |4
65<U0023>+<UFE0F> \x01\x02\x04 |0
66
b75a7d8f 67END CHARMAP