Skip to content

Commit

Permalink
Added a custom case example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mrapplexz committed Jul 30, 2019
1 parent bd08da7 commit 6302dd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Multiplatform Kotlin library to convert strings between various case formats
```kotlin
"IAmAPascalCasedString".toSnakeCase() // i_am_a_pascal_cased_string
"IAmAPascalCasedString".toCase(CaseFormat.LOWER_UNDERSCORE) // i_am_a_pascal_cased_string
```
- Transforming string to a custom case:
```kotlin
"some_string".toCase(CaseFormatterConfig(CaseFormatterConfig(false, "..", wordCapitalize = true, firstWordCapitalize = true))) // Some..String
```
- Splitting a string into words:
```kotlin
Expand Down

0 comments on commit 6302dd2

Please sign in to comment.