public void makeClass(String str,boolean caseless){
  for (int i=0; i < str.length(); ) {
    int ch=str.codePointAt(i);
    makeClass(ch,caseless);
    i+=Character.charCount(ch);
  }
}

public void makeClass ( String str , boolean caseless ) { for ( int i = 0 ; i < str . length ( ) ; ) { int ch = str . codePointAt ( i ) ; makeClass ( ch , caseless ) ; i += Character . charCount ( ch ) ; } }
creates a new character class for each character of the specified string .
