From f8b05c5c2d04691f53e9953828689be8bcd98815 Mon Sep 17 00:00:00 2001 From: Ram Viswanadha Date: Tue, 8 Oct 2002 17:37:50 +0000 Subject: [PATCH] ICU-2323 fix for ID 7 and linient compare of ID names ignoring _,- etc X-SVN-Rev: 9988 --- icu4j/src/com/ibm/icu/dev/test/lang/TestUScript.java | 10 +++++++++- icu4j/src/com/ibm/icu/lang/UScript.java | 8 ++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/icu4j/src/com/ibm/icu/dev/test/lang/TestUScript.java b/icu4j/src/com/ibm/icu/dev/test/lang/TestUScript.java index dfd3d9436d..652795fd6b 100755 --- a/icu4j/src/com/ibm/icu/dev/test/lang/TestUScript.java +++ b/icu4j/src/com/ibm/icu/dev/test/lang/TestUScript.java @@ -312,5 +312,13 @@ public class TestUScript extends TestFmwk{ } oldAbbrId = newAbbrId; } - } + } + public void TestScriptNames(){ + for(int i=0; i=name1.length)||(j>=name2.length)) { return (name1.length - name2.length); @@ -401,7 +403,9 @@ public final class UScript { return rc; } } - + if(i==endIndex1 && j==endIndex2){ + return 0; + } ++i; ++j; }