// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.tweakr;

public class TextUtils {

    public static boolean isEmpty(String targetPrefix) {
        return targetPrefix == null || targetPrefix.length() == 0;
    }

    public static String decapitalize(String capitalized) {
        if (capitalized.length() < 2) {
            return capitalized.toLowerCase();
        }
        return capitalized.substring(0, 1).toLowerCase() + capitalized.substring(1);
    }
}

@@ -610,16 +610,42 @@
 weakr;%0A%0A
+import java.util.Locale;%0A%0A
 public c
@@ -849,24 +849,69 @@
 italized) %7B%0A
+        Locale locale = Locale.getDefault();%0A
         if (
@@ -981,16 +981,22 @@
 werCase(
+locale
 );%0A     
@@ -1055,16 +1055,22 @@
 werCase(
+locale
 ) + capi

add default locale (#40)