private final void addExpandOrder(String contractChars,String expandChars,int anOrder) throws ParseException {
  int tableIndex=addExpansion(anOrder,expandChars);
  if (contractChars.length() > 1) {
    char ch=contractChars.charAt(0);
    if (Character.isHighSurrogate(ch) && contractChars.length() == 2) {
      char ch2=contractChars.charAt(1);
      if (Character.isLowSurrogate(ch2)) {
        addOrder(Character.toCodePoint(ch,ch2),tableIndex);
      }
    }
 else {
      addContractOrder(contractChars,tableIndex);
    }
  }
 else {
    addOrder(contractChars.charAt(0),tableIndex);
  }
}

private final void addExpandOrder ( String contractChars , String expandChars , int anOrder ) throws ParseException { int tableIndex = addExpansion ( anOrder , expandChars ) ; if ( contractChars . length ( ) > 1 ) { char ch = contractChars . charAt ( 0 ) ; if ( Character . isHighSurrogate ( ch ) && contractChars . length ( ) == 2 ) { char ch2 = contractChars . charAt ( 1 ) ; if ( Character . isLowSurrogate ( ch2 ) ) { addOrder ( Character . toCodePoint ( ch , ch2 ) , tableIndex ) ; } } else { addContractOrder ( contractChars , tableIndex ) ; } } else { addOrder ( contractChars . charAt ( 0 ) , tableIndex ) ; } }
adds the expanding string into the collation table .
