Skip to content

Commit

Permalink
Update docs - cases.md - Split String by PascalCase or cacmelCase
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
kevin-lee committed Nov 24, 2023
1 parent 4c6b4c4 commit 0ba1d89
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/extras-string/cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ List(
```

### `Seq[String]` to `KEBAB-UPPER-CASE-STRING`

```scala mdoc
List("Abc", "Def").mkKebabUpperCaseString

Expand Down Expand Up @@ -573,6 +574,7 @@ List(
```

### `Seq[String]` to `kebab-lower-case-string`

```scala mdoc
List("Abc", "Def").mkKebabLowerCaseString

Expand Down Expand Up @@ -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
```

0 comments on commit 0ba1d89

Please sign in to comment.