Lower
class Lower : CaseMap
Lowercasing options and methods. Immutable.
Summary
Public methods |
String! |
Lowercases a string.
|
A |
Lowercases a string and optionally records edits (see omitUnchangedText ).
|
CaseMap.Lower! |
Returns an instance that behaves like this one but omits unchanged text when case-mapping with Edits .
|
Public methods
apply
fun apply(
locale: Locale!,
src: CharSequence!
): String!
Lowercases a string. Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.
Return |
String! |
the result string. |
apply
fun <A : Appendable!> apply(
locale: Locale!,
src: CharSequence!,
dest: A,
edits: Edits!
): A
Lowercases a string and optionally records edits (see omitUnchangedText
). Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.
Parameters |
locale |
Locale!: The locale ID. Can be null for java.util.Locale#getDefault. (See ULocale#toLocale .) |
src |
CharSequence!: The original string. |
dest |
A: A buffer for the result string. Must not be null. |
edits |
Edits!: Records edits for index mapping, working with styled text, and getting only changes (if any). This function calls edits.reset() first. edits can be null. |
Return |
A |
dest with the result string (or only changes) appended. |
omitUnchangedText
fun omitUnchangedText(): CaseMap.Lower!
Returns an instance that behaves like this one but omits unchanged text when case-mapping with Edits
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.