From cbc1e34b7f31fda1ce22fce61a03094a326f38fc Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 21 Jan 2016 04:41:55 +0000 Subject: [PATCH] ICU-11802 add 4 Emoji properties from emoji-data.txt 2.0 X-SVN-Rev: 38184 --- .../com/ibm/icu/impl/UCharacterProperty.java | 14 ++++++- .../core/src/com/ibm/icu/lang/UProperty.java | 38 +++++++++++++++++-- icu4j/main/shared/data/icudata.jar | 4 +- .../ibm/icu/dev/test/lang/UCharacterTest.java | 16 +++++++- 4 files changed, 64 insertions(+), 8 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java index fc28c9d44fe..0af9f5cf808 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 1996-2015, International Business Machines Corporation and + * Copyright (C) 1996-2016, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************* */ @@ -384,6 +384,10 @@ public final class UCharacterProperty return !Normalizer2Impl.UTF16Plus.equal(dest, src); } }, + new BinaryProperty(2, 1< 700); + + assertTrue("shooting star is Emoji_Presentation", + UCharacter.hasBinaryProperty(0x1F320, UProperty.EMOJI_PRESENTATION)); + assertTrue("Fitzpatrick 6 is Emoji_Modifier", + UCharacter.hasBinaryProperty(0x1F3FF, UProperty.EMOJI_MODIFIER)); + assertTrue("happy person is Emoji_Modifier_Base", + UCharacter.hasBinaryProperty(0x1F64B, UProperty.EMOJI_MODIFIER_BASE)); + } + public void TestIsBMP() { int ch[] = {0x0, -1, 0xffff, 0x10ffff, 0xff, 0x1ffff}; -- 2.40.0