36453646364736483649365036513652365336543655
addCaseMapping(foldSet, result, full); result = csp.toFullUpper(cp, null, full, root, locCache); addCaseMapping(foldSet, result, full); result = csp.toFullFolding(cp, full, 0); addCaseMapping(foldSet, result, full); } } } if (!strings.isEmpty()) {
38093810381138123813381438153816381738183819
37313732373337343735373637373738373937403741
13791380138113821383138413851386138713881389
} catch(IOException e) { throw new RuntimeException(e); } // first: b = NFKC(Fold(a)) StringBuffer folded=new StringBuffer(); int folded1Length=csp.toFullFolding(c, folded, 0); if(folded1Length<0) { Normalizer2Impl nfkcImpl=((Norm2AllModes.Normalizer2WithImpl)nfkc).impl; if(nfkcImpl.getCompQuickCheck(nfkcImpl.getNorm16(c))!=0) { return ""; // c does not change at all under CaseFolding+NFKC }
21822183218421852186218721882189219021912192
* go down one level for each string * continue with the main loop as soon as there is a real change */ if( level1==0 && (options&COMPARE_IGNORE_CASE)!=0 && (length=csp.toFullFolding(cp1, fold1, options))>=0 ) { /* cp1 case-folds to the code point "length" or to p[length] */ if(UTF16.isSurrogate((char)c1)) { if(Normalizer2Impl.UTF16Plus.isSurrogateLead(c1)) { /* advance beyond source surrogate pair if it case-folds */
22302231223222332234223522362237223822392240
c1=-1; continue; } if( level2==0 && (options&COMPARE_IGNORE_CASE)!=0 && (length=csp.toFullFolding(cp2, fold2, options))>=0 ) { /* cp2 case-folds to the code point "length" or to p[length] */ if(UTF16.isSurrogate((char)c2)) { if(Normalizer2Impl.UTF16Plus.isSurrogateLead(c2)) { /* advance beyond source surrogate pair if it case-folds */
36283629363036313632363336343635363636373638
13751376137713781379138013811382138313841385
// For the derivation, see Unicode's DerivedNormalizationProps.txt. Normalizer2 nfkc=NFKCModeImpl.INSTANCE.normalizer2; UCaseProps csp=UCaseProps.INSTANCE; // first: b = NFKC(Fold(a)) StringBuilder folded=new StringBuilder(); int folded1Length=csp.toFullFolding(c, folded, 0); if(folded1Length<0) { Normalizer2Impl nfkcImpl=((Norm2AllModes.Normalizer2WithImpl)nfkc).impl; if(nfkcImpl.getCompQuickCheck(nfkcImpl.getNorm16(c))!=0) { return ""; // c does not change at all under CaseFolding+NFKC }
21742175217621772178217921802181218221832184
22222223222422252226222722282229223022312232