private CharSequence toLowercase(CharSequence chs){
  final int length=chs.length();
  scratch.setLength(length);
  scratch.grow(length);
  char buffer[]=scratch.chars();
  for (int i=0; i < length; ) {
    i+=Character.toChars(Character.toLowerCase(Character.codePointAt(chs,i)),buffer,i);
  }
  return scratch.get();
}

private CharSequence toLowercase ( CharSequence chs ) { final int length = chs . length ( ) ; scratch . setLength ( length ) ; scratch . grow ( length ) ; char buffer [ ] = scratch . chars ( ) ; for ( int i = 0 ; i < length ; ) { i += Character . toChars ( Character . toLowerCase ( Character . codePointAt ( chs , i ) ) , buffer , i ) ; } return scratch . get ( ) ; }
convert to lowercase in - place .
