diff --git a/docs/extras-string/cases.md b/docs/extras-string/cases.md index 6fc0ee7a..05a6f18c 100644 --- a/docs/extras-string/cases.md +++ b/docs/extras-string/cases.md @@ -537,6 +537,7 @@ List( ``` ### `Seq[String]` to `KEBAB-UPPER-CASE-STRING` + ```scala mdoc List("Abc", "Def").mkKebabUpperCaseString @@ -573,6 +574,7 @@ List( ``` ### `Seq[String]` to `kebab-lower-case-string` + ```scala mdoc List("Abc", "Def").mkKebabLowerCaseString @@ -607,3 +609,17 @@ List( "Snow-Moon Hike__Play--Jump Calm--__Kind Warm __-- Cool" ).mkKebabLowerCaseString ``` + +## Split `String` by `PascalCase` or `cacmelCase` + +You can split a `String` value by PascalCase or camelCase. + +e.g.) + +```scala mdoc +"StarBirdGlowWaveLeafBookWindSandRainFireSnowMoonHikePlayJumpCalmKindWarmSoftCool".splitByCase +``` + +```scala mdoc +"starBirdGlowWaveLeafBookWindSandRainFireSnowMoonHikePlayJumpCalmKindWarmSoftCool".splitByCase +```