All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.multiplatform.font.localize.Alphabet.kt Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package ru.casperix.multiplatform.font.localize

class Alphabet(val language: Language, hasTitleCase: Boolean, chars: String) {
    val charSet = if (!hasTitleCase) {
        chars.toSet()
    } else {
        (chars.map { it.titlecaseChar() }.toSet() + chars.toSet())
    }
    val chars = charSet.joinToString("")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy