Skip to content

Locale-agnostic case conversions by defaultΒ #223

Open
@qurbonzoda

Description

@qurbonzoda

This issue is to discuss the proposal to introduce case conversion API that do not depend on the default locale settings in standard library.

The new API includes:

  • String.uppercase(): String
  • String.lowercase(): String
  • Char.lowercase(): String, Char.lowercaseChar(): Char
  • Char.uppercase(): String, Char.uppercaseChar(): Char
  • Char.titlecase(): String, Char.titlecaseChar(): Char
  • String.replaceFirstChar(transform: (Char) -> Char): String
  • String.replaceFirstChar(transform: (Char) -> CharSequence): String

They are to replace existing locale-sensitive API.

The proposal text is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions