Class KotlinStringUtil


  • public class KotlinStringUtil
    extends java.lang.Object
    Kotlin String utility methods.
    • Method Detail

      • capitializeFirstCharacterAsciiOnly

        public static java.lang.String capitializeFirstCharacterAsciiOnly​(java.lang.String s)
      • decapitializeFirstCharacterAsciiOnly

        public static java.lang.String decapitializeFirstCharacterAsciiOnly​(java.lang.String s)
      • decapitializeForKotlinCompiler

        public static java.lang.String decapitializeForKotlinCompiler​(java.lang.String s)
        Decaptialize according to the Kotlin compiler, basically first words are decapitialized.

        See capitializeDecapitialze.kt

        "FooBar" -> "fooBar" "FOOBar" -> "fooBar" "FOO" -> "foo" "FOO_BAR" -> "foo_BAR"