Skip to content

Commit

Permalink
Merge pull request #499 from kevin-lee/update-docs
Browse files Browse the repository at this point in the history
Update docs - `cases.md` - `Seq[String]` to `SNAKE_UPPER_CASE_STRING`, `snake_lower_case_string` and  `Kebab-Case-String`,
  • Loading branch information
kevin-lee authored Nov 8, 2023
2 parents aba1cd3 + a4b3029 commit debb4d7
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions docs/extras-string/cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,3 +410,99 @@ List("abc def ghi", "jkl mno pqr", "st u").mkSnakeCaseString
List("ABC DEF GHI", "JKL MNO PQR", "ST U").mkSnakeCaseString
```

### `Seq[String]` to `SNAKE_UPPER_CASE_STRING`

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

List("AbcDef", "Ghi", "jkl", "MnoPqr").mkSnakeUpperCaseString

List("abcDef", "Ghi", "jkl", "MnoPqr").mkSnakeUpperCaseString

List("abc").mkSnakeUpperCaseString

List("ABC").mkSnakeUpperCaseString

List("Abc_Def_Ghi", "jkl_mno_Pqr").mkSnakeUpperCaseString

List("abc_def_ghi", "jkl_mno_pqr", "st_u").mkSnakeUpperCaseString

List("ABC_DEF_GHI", "JKL_MNO_PQR", "ST_U").mkSnakeUpperCaseString

List("Abc-Def-Ghi", "jkl-mno-Pqr").mkSnakeUpperCaseString

List("abc-def-ghi", "jkl-mno-pqr", "st-u").mkSnakeUpperCaseString

List("ABC-DEF-GHI", "JKL-MNO-PQR", "ST-U").mkSnakeUpperCaseString

List("Abc Def Ghi", "jkl mno Pqr").mkSnakeUpperCaseString

List("abc def ghi", "jkl mno pqr", "st u").mkSnakeUpperCaseString

List("ABC DEF GHI", "JKL MNO PQR", "ST U").mkSnakeUpperCaseString
```

### `Seq[String]` to `snake_lower_case_string`

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

List("AbcDef", "Ghi", "jkl", "MnoPqr").mkSnakeLowerCaseString

List("abcDef", "Ghi", "jkl", "MnoPqr").mkSnakeLowerCaseString

List("abc").mkSnakeLowerCaseString

List("ABC").mkSnakeLowerCaseString

List("Abc_Def_Ghi", "jkl_mno_Pqr").mkSnakeLowerCaseString

List("abc_def_ghi", "jkl_mno_pqr", "st_u").mkSnakeLowerCaseString

List("ABC_DEF_GHI", "JKL_MNO_PQR", "ST_U").mkSnakeLowerCaseString

List("Abc-Def-Ghi", "jkl-mno-Pqr").mkSnakeLowerCaseString

List("abc-def-ghi", "jkl-mno-pqr", "st-u").mkSnakeLowerCaseString

List("ABC-DEF-GHI", "JKL-MNO-PQR", "ST-U").mkSnakeLowerCaseString

List("Abc Def Ghi", "jkl mno Pqr").mkSnakeLowerCaseString

List("abc def ghi", "jkl mno pqr", "st u").mkSnakeLowerCaseString

List("ABC DEF GHI", "JKL MNO PQR", "ST U").mkSnakeLowerCaseString
```

### `Seq[String]` to `Kebab-Case-String`

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

List("AbcDef", "Ghi", "jkl", "MnoPqr").mkKebabCaseString

List("abcDef", "Ghi", "jkl", "MnoPqr").mkKebabCaseString

List("abc").mkKebabCaseString

List("ABC").mkKebabCaseString

List("Abc_Def_Ghi", "jkl_mno_Pqr").mkKebabCaseString

List("abc_def_ghi", "jkl_mno_pqr", "st_u").mkKebabCaseString

List("ABC_DEF_GHI", "JKL_MNO_PQR", "ST_U").mkKebabCaseString

List("Abc-Def-Ghi", "jkl-mno-Pqr").mkKebabCaseString

List("abc-def-ghi", "jkl-mno-pqr", "st-u").mkKebabCaseString

List("ABC-DEF-GHI", "JKL-MNO-PQR", "ST-U").mkKebabCaseString

List("Abc Def Ghi", "jkl mno Pqr").mkKebabCaseString

List("abc def ghi", "jkl mno pqr", "st u").mkKebabCaseString

List("ABC DEF GHI", "JKL MNO PQR", "ST U").mkKebabCaseString
```

0 comments on commit debb4d7

Please sign in to comment.