kasechange alternatives and similar libraries
Based on the "Misc" category.
Alternatively, view kasechange alternatives based on common mentions on social networks and blogs.
-
jclasslib
jclasslib bytecode editor is a tool that visualizes all aspects of compiled Java class files and the contained bytecode. -
kotlin-logging
Lightweight Multiplatform logging framework for Kotlin. A convenient and performant logging facade. -
lingua
The most accurate natural language detection library for Java and the JVM, suitable for long and short text alike -
Kotlift
DISCONTINUED. Kotlift is the first source-to-source language transpiler from Kotlin to Swift -
Humanizer.jvm
Humanizer.jvm meets all your jvm needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities. -
klutter
A mix of random small libraries for Kotlin, the smallest reside here until big enough for their own repository. -
solr-undertow
Solr / SolrCloud running in high performance server - tiny, fast startup, simple to configure, easy deployment without an application server. -
kassava
This library provides some useful kotlin extension functions for implementing toString(), hashCode() and equals() without all of the boilerplate. -
SimpleDNN
SimpleDNN is a machine learning lightweight open-source library written in Kotlin designed to support relevant neural network architectures in natural language processing tasks -
kotlin-futures
A collections of extension functions to make the JVM Future, CompletableFuture, ListenableFuture API more functional and Kotlin like. -
PrimeCalendar
PrimeCalendar provides all of the java.util.Calendar functionalities for Persian, Hijri, and ... dates. It is also possible to convert dates to each other. -
log4k
Lightweight logging library for Kotlin/Multiplatform. Supports Android, iOS, JavaScript and plain JVM environments.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of kasechange or a related project?
README
KaseChange
Multiplatform Kotlin library to convert strings between various case formats
Supported Case Formats
- SCREAMING_SNAKE_CASE
- snake_case
- PascalCase
- camelCase
- TRAIN-CASE
- kebab-case
- UPPER SPACE CASE
- Title Case
- lower space case
- UPPER.DOT.CASE
- dot.case
- custom one :)
Setup
- Add the lib to your project's dependencies:
Groovy (replace
$kasechange_version
with the version you want):// universal dependency for Gradle 5.3 and above // in case of multiplatform project, just specify the dependency for commonMain/commonTest source set implementation "net.pearx.kasechange:kasechange:$kasechange_version"
// for Gradle versions below 5.3: implementation "net.pearx.kasechange:kasechange-metadata:$kasechange_version" // for Common // or implementation "net.pearx.kasechange:kasechange-jvm:$kasechange_version" // for JVM // or implementation "net.pearx.kasechange:kasechange-js:$kasechange_version" // for JS // or implementation "net.pearx.kasechange:kasechange-android:$kasechange_version" // for Android // or implementation "net.pearx.kasechange:kasechange-PLATFORM_YOU_WANT:$kasechange_version" // for Native
Kotlin (replace
$kasechangeVersion
with the version you want):// universal dependency for Gradle 5.3 and above // in case of multiplatform project, just specify the dependency for commonMain/commonTest source set implementation("net.pearx.kasechange:kasechange:$kasechangeVersion")
// for Gradle versions below 5.3: implementation("net.pearx.kasechange:kasechange-metadata:$kasechangeVersion") // for Common // or implementation("net.pearx.kasechange:kasechange-jvm:$kasechangeVersion") // for JVM // or implementation("net.pearx.kasechange:kasechange-js:$kasechangeVersion") // for JS // or implementation("net.pearx.kasechange:kasechange-android:$kasechangeVersion") // for Android // or implementation("net.pearx.kasechange:kasechange-PLATFORM_YOU_WAN:$kasechangeVersion") // for Native
- Use the library and have fun!
# Examples:
- Transforming string from any case to specific one:
kotlin "IAmAPascalCasedString123".toSnakeCase() // i_am_a_pascal_cased_string_123 "IAmAPascalCasedString123".toCase(CaseFormat.LOWER_UNDERSCORE) // i_am_a_pascal_cased_string_123 "IAmAPascalCasedString123".toCase(to = CaseFormat.LOWER_UNDERSCORE, from = universalWordSplitter()) // i_am_a_pascal_cased_string_123 "IAmAPascalCasedString123".toSnakeCase(universalWordSplitter()) // i_am_a_pascal_cased_string_123 "IAmAPascalCasedString123".toCase(to = CaseFormat.LOWER_UNDERSCORE, from = universalWordSplitter(treatDigitsAsUppercase = false)) // i_am_a_pascal_cased_string123 "IAmAPascalCasedString123".toSnakeCase(universalWordSplitter(treatDigitsAsUppercase = false)) // i_am_a_pascal_cased_string123
- Transforming string from one case to another:
kotlin "123e4567-e89b-12d3-a456-426655440000".toSnakeCase(CaseFormat.LOWER_HYPHEN) // 123e4567_e89b_12d3_a456_426655440000 "123e4567-e89b-12d3-a456-426655440000".toCase(to = CaseFormat.LOWER_UNDERSCORE, from = CaseFormat.LOWER_HYPHEN) // 123e4567_e89b_12d3_a456_426655440000
- Transforming string from any case to specific one:
- Transforming string to a custom case:
kotlin "some_string".toCase(CaseFormatterConfig(false, "..", wordCapitalize = true, firstWordCapitalize = true)) // Some..String
- Splitting a string in any case into words:
kotlin "XMLExtendedParser".splitToWords() // [XML, Extended, Parser] "XMLExtendedParser2".splitToWords(universalWordSplitter(treatDigitsAsUppercase = true)) // [XML, Extended, Parser, 2] "XMLExtendedParser2".splitToWords(universalWordSplitter(treatDigitsAsUppercase = false)) // [XML, Extended, Parser2]
- Splitting a string in specific case into words:
kotlin "s0meth1ng_in_snake_case".splitToWords(CaseFormat.LOWER_UNDERSCORE) // [s0meth1ng, in, snake, case]
- Splitting a string in any case into words:
*Note that all licence references and agreements mentioned in the kasechange README section above
are relevant to that project's source code only.