This commit is contained in:
sagie gur ari 2021-07-23 12:48:57 +00:00
parent fa0aed5b8e
commit fe2b805a75
2 changed files with 44 additions and 39 deletions

View file

@ -2,6 +2,11 @@
### v0.8.4
* New lowercase command #183 (thanks @asvln)
* New uppercase command #183 (thanks @asvln)
* New camelcase command #183 (thanks @asvln)
* New snakecase command #183 (thanks @asvln)
* New kebabcase command #183 (thanks @asvln)
* Docs - update --collection documentation for json_parse and json_encode commands #175
### v0.8.3 (2021-07-10)

View file

@ -155,6 +155,7 @@
* [std::string::KebabCase (kebabcase)](#std__string__KebabCase)
* [std::string::LastIndexOf (last_indexof)](#std__string__LastIndexOf)
* [std::string::Length (length, strlen)](#std__string__Length)
* [std::string::Lowercase (lowercase)](#std__string__Lowercase)
* [std::string::Replace (replace)](#std__string__Replace)
* [std::string::SnakeCase (snakecase)](#std__string__SnakeCase)
* [std::string::Split (split)](#std__string__Split)
@ -164,6 +165,7 @@
* [std::string::Trim (trim)](#std__string__Trim)
* [std::string::TrimEnd (trim_end)](#std__string__TrimEnd)
* [std::string::TrimStart (trim_start)](#std__string__TrimStart)
* [std::string::Uppercase (uppercase)](#std__string__Uppercase)
* [std::test::Assert (assert)](#std__test__Assert)
* [std::test::AssertEquals (assert_eq)](#std__test__AssertEquals)
* [std::test::AssertError (assert_error)](#std__test__AssertError)
@ -5458,7 +5460,6 @@ assert_eq ${text} "hello world"
#### Aliases:
bytes_to_string
<a name="std__string__CamelCase"></a>
## std::string::CamelCase
```sh
@ -5484,10 +5485,10 @@ assert_eq ${string} "HelloWorld"
```
#### Aliases:
camelcase
<a name="std__string__Concat"></a>
## std::string::Concat
@ -5690,6 +5691,35 @@ empty = is_empty ${value}
#### Aliases:
is_empty
<a name="std__string__KebabCase"></a>
## std::string::KebabCase
```sh
var = kebobcase text
```
Converts the provided string into kebob case.
All non-alphanumeric characters are ignored.
#### Parameters
The string to convert.
#### Return Value
The converted string.
#### Examples
```sh
string = kebobcase "Hello, World!"
assert_eq ${string} "hello-world"
```
#### Aliases:
kebabcase
<a name="std__string__LastIndexOf"></a>
## std::string::LastIndexOf
```sh
@ -5719,35 +5749,6 @@ index = last_indexof " some text " some
#### Aliases:
last_indexof
<a name="std__string__KebabCase"></a>
## std::string::KebabCase
```sh
var = kebabcase text
```
Converts the provided string into kebab case.
All non-alphanumeric characters are ignored.
#### Parameters
The string to convert.
#### Return Value
The converted string.
#### Examples
```sh
string = kebabcase "hello, world!"
assert_eq ${string} "hello-world"
```
#### Aliases:
kebabcase
<a name="std__string__Length"></a>
## std::string::Length
```sh
@ -5774,9 +5775,8 @@ len = length "Hello World"
#### Aliases:
length, strlen
<a name="std__string__Length"></a>
## std::string::Length
<a name="std__string__Lowercase"></a>
## std::string::Lowercase
```sh
var = lowercase text
```
@ -5798,10 +5798,11 @@ string = lowercase "Hello World"
assert_eq ${string} "hello world"
```
#### Aliases:
lowercase
<a name="std__string__Replace"></a>
## std::string::Replace
```sh
@ -5833,7 +5834,6 @@ assert_eq ${updated} "my large stuff value with lots of stuff"
#### Aliases:
replace
<a name="std__string__SnakeCase"></a>
## std::string::SnakeCase
```sh
@ -5859,10 +5859,10 @@ assert_eq ${string} "hello_world"
```
#### Aliases:
snakecase
<a name="std__string__Split"></a>
## std::string::Split
```sh
@ -6103,7 +6103,6 @@ trimmed = trim_start " some text "
#### Aliases:
trim_start
<a name="std__string__Uppercase"></a>
## std::string::Uppercase
```sh
@ -6127,10 +6126,11 @@ string = uppercase "Hello World"
assert_eq ${string} "HELLO WORLD"
```
#### Aliases:
uppercase
<a name="std__test__Assert"></a>
## std::test::Assert
```sh