public AsciiString toLowerCase ( ) { boolean lowercased = true ; int i , j ; final int len = length ( ) + arrayOffset ( ) ; for ( i = arrayOffset ( ) ; i < len ; ++ i ) { byte b = value [ i ] ; if ( b >= ' ' && b <= ' ' ) { lowercased = false ; break ; } } // Check if this string does not contain any uppercase characters. if ( lowercased ) { return this ; } final byte [ ] newValue = PlatformDependent . allocateUninitializedArray ( length ( ) ) ; for ( i = 0 , j = arrayOffset ( ) ; i < newValue . length ; ++ i , ++ j ) { newValue [ i ] = toLowerCase ( value [ j ] ) ; } return new AsciiString ( newValue , false ) ; }
Converts the characters in this string to lowercase using the default Locale .