From edfce46a6c0406af749ca7ef659df6315e36cd5d Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Sun, 12 Jan 2014 21:14:25 +0200 Subject: Update the Unicode Data and Algorithms up to Unicode 6.3.0 * Mongolian and Phags-pa characters have been given a Joining_Type classification for contextual shaping. As a part of these additions, one Phags-pa character has the Joining_Type value of L (Left Joining), which no character had been assigned before. * The unassigned code points in the Currency Symbols block have been given the Bidi_Class property value ET and the Line_Break property value PR, to help implementations support new currency symbols, when they are encoded. * Hebrew letters and basic punctuation marks have been assigned the newly introduced Word_Break property values Hebrew_Letter, Single_Quote, and Double_Quote. * The Bidi_Class property has been extended with four new values for directional isolates. For more details, see http://www.unicode.org/versions/Unicode6.3.0/ Change-Id: Iad62d02edc58a8497898dcd6d6c70d5aece317ea Reviewed-by: Lars Knoll --- tests/auto/corelib/tools/qchar/tst_qchar.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/auto/corelib/tools/qchar') diff --git a/tests/auto/corelib/tools/qchar/tst_qchar.cpp b/tests/auto/corelib/tools/qchar/tst_qchar.cpp index 2ec85882b8..80b4162156 100644 --- a/tests/auto/corelib/tools/qchar/tst_qchar.cpp +++ b/tests/auto/corelib/tools/qchar/tst_qchar.cpp @@ -450,6 +450,18 @@ void tst_QChar::category() void tst_QChar::direction() { + QVERIFY(QChar::direction(0x200E) == QChar::DirL); + QVERIFY(QChar::direction(0x200F) == QChar::DirR); + QVERIFY(QChar::direction(0x202A) == QChar::DirLRE); + QVERIFY(QChar::direction(0x202B) == QChar::DirRLE); + QVERIFY(QChar::direction(0x202C) == QChar::DirPDF); + QVERIFY(QChar::direction(0x202D) == QChar::DirLRO); + QVERIFY(QChar::direction(0x202E) == QChar::DirRLO); + QVERIFY(QChar::direction(0x2066) == QChar::DirLRI); + QVERIFY(QChar::direction(0x2067) == QChar::DirRLI); + QVERIFY(QChar::direction(0x2068) == QChar::DirFSI); + QVERIFY(QChar::direction(0x2069) == QChar::DirPDI); + QVERIFY(QChar('a').direction() == QChar::DirL); QVERIFY(QChar('0').direction() == QChar::DirEN); QVERIFY(QChar((ushort)0x627).direction() == QChar::DirAL); @@ -492,6 +504,9 @@ void tst_QChar::joining() QVERIFY(QChar::joining(0xf0000u) == QChar::OtherJoining); QVERIFY(QChar::joining(0xE0030u) == QChar::OtherJoining); QVERIFY(QChar::joining(0x2FA17u) == QChar::OtherJoining); + + // ### U+A872 has joining type L + QVERIFY(QChar::joining((uint)0xA872) == QChar::OtherJoining); } void tst_QChar::combiningClass() @@ -605,6 +620,11 @@ void tst_QChar::unicodeVersion() QVERIFY(QChar::unicodeVersion((uint)0x20ba) == QChar::Unicode_6_2); QVERIFY(QChar::unicodeVersion((uint)0x20ba) == QChar::Unicode_6_2); + QVERIFY(QChar(0x061c).unicodeVersion() == QChar::Unicode_6_3); + QVERIFY(QChar::unicodeVersion((ushort)0x061c) == QChar::Unicode_6_3); + QVERIFY(QChar::unicodeVersion((uint)0x061c) == QChar::Unicode_6_3); + QVERIFY(QChar::unicodeVersion((uint)0x061c) == QChar::Unicode_6_3); + QVERIFY(QChar(0x09ff).unicodeVersion() == QChar::Unicode_Unassigned); QVERIFY(QChar::unicodeVersion((ushort)0x09ff) == QChar::Unicode_Unassigned); QVERIFY(QChar::unicodeVersion((uint)0x09ff) == QChar::Unicode_Unassigned); -- cgit v1.2.3