* Upper case character converts to Lower case * Title case character converts to Lower case * Lower case character converts to Upper case * * * For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#swapCase(String)}. * A {@code null} input String returns {...
* Title case character converts to Lower case * Lower case character converts to Upper case * * * For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#swapCase(String)}. * A {@code null} input String returns {@code null}. * * * StringUtils.swapCase(nul...
一般而言,String#toLowerCase()應該用來將字元對應到小寫。String案例對應方法對於Character案例對應方法有數個優點。String案例對應方法可以執行區分地區設定的對應、內容敏感的對應和 1:M 字元對應,而Character案例對應方法則無法執行。 已在1.5中新增。 的java.lang.Character.toLowerCase(int)Java 檔。
publicclassFirstLetterToLower{publicstaticStringconvert(Stringinput){if(input==null||input.isEmpty()){returninput;}charfirstChar=input.charAt(0);returnCharacter.toLowerCase(firstChar)+input.substring(1);}publicstaticvoidmain(String[]args){Stringinput="Hello World";Stringoutput=convert(input);System....
\ Convert character to lowercase.: to-lower ( C -- c )dup [char] A [ char Z 1+ ] literal within if32 +then ; \ Convert string to lowercase in place.: lower-in-place ( addr u -- )over + swap ?doi c@ to-lower i c!loop ; ...
String Methoden zur Groß-/Kleinschreibungszuordnung können gebietsschemabezogene Zuordnungen, kontextbezogene Zuordnungen und 1:M-Zeichenzuordnungen ausführen, während die Character Groß-/Kleinschreibungszuordnungsmethoden nicht möglich sind. Hinzugefügt in 1.5. Java-Dokumentation ...
Converts the character (Unicode code point) argument to lowercase using case mapping information from the UnicodeData file. C# [Android.Runtime.Register("toLowerCase","(I)I","")]publicstaticintToLowerCase(intcodePoint); Parameters codePoint ...
In this example, we have a string"STRAßE"which means “street” in German. When we convert it to lowercase using the German locale (Locale.GERMAN), the ‘ß’ character transforms into ‘ss’. OriginalText:STRAßELowercaseText:strasseOriginalLength:6LowercaseLength:7 ...
toLowerCase() 指定字母的小写形式
The Character class wraps a value of the primitive type char in an object. An object of class Character contains a single field whose type is char. In addition, this class provides several methods for determining a character's category (lowercase letter, digit, etc.) and for converting ...