Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."],[],[]]