class MutableCharArrayUtils {

  public static boolean toLowerCase(MutableCharArray source, MutableCharArray result) {
    char[] buffer = result.getBuffer();

    final int length = source.length();
    if (buffer.length < length) {
      buffer = new char[length];
    }

    final boolean changed =
        CharArrayUtils.toLowerCase(source.getBuffer(), buffer, source.getStart(), source.length());
    result.reset(buffer, 0, length);

    return changed;
  }

}