From b9172e10b077fc1fd80bcc1b232c3e80a175a828 Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Mon, 6 Nov 2023 23:52:39 +1100 Subject: [PATCH 1/3] Update docs - cases.md - `Seq[String]` to `SNAKE_UPPER_CASE_STRING` [skip ci] --- docs/extras-string/cases.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/extras-string/cases.md b/docs/extras-string/cases.md index 3de43868..ee841038 100644 --- a/docs/extras-string/cases.md +++ b/docs/extras-string/cases.md @@ -410,3 +410,34 @@ 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 +``` From 0b0bf74c485f87b91b735a67eba3f7de494c1e66 Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Tue, 7 Nov 2023 00:10:01 +1100 Subject: [PATCH 2/3] Update docs - cases.md - `Seq[String]` to `snake_lower_case_string` [skip ci] --- docs/extras-string/cases.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/extras-string/cases.md b/docs/extras-string/cases.md index ee841038..31c1d7bd 100644 --- a/docs/extras-string/cases.md +++ b/docs/extras-string/cases.md @@ -441,3 +441,35 @@ 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 +``` From a4b3029e81e3a94dd573af8d3026e0b872772b02 Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Thu, 9 Nov 2023 08:30:33 +1100 Subject: [PATCH 3/3] Update docs - cases.md - `Seq[String]` to `Kebab-Case-String` [skip ci] --- docs/extras-string/cases.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/extras-string/cases.md b/docs/extras-string/cases.md index 31c1d7bd..7d6af75b 100644 --- a/docs/extras-string/cases.md +++ b/docs/extras-string/cases.md @@ -473,3 +473,36 @@ 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 +``` +