mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Replace to(Upper|Lower)Case with Ascii.to$1Case
The presubmits are warning that toUpperCase() and toLowerCase() are locale-specific, and advise using Ascii.toUpperCase() and Ascii.toLowerCase() as a local-invariant alternative. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127583677
This commit is contained in:
parent
d9596fa30c
commit
e72491e59b
22 changed files with 62 additions and 38 deletions
|
@ -57,8 +57,8 @@ public final class Idn {
|
|||
}
|
||||
|
||||
/**
|
||||
* Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII
|
||||
* operation of <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>.
|
||||
* Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the
|
||||
* ToUnicode operation of <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>.
|
||||
*
|
||||
* <p>This method always uses <a href="http://unicode.org/reports/tr46/">UTS46 transitional
|
||||
* processing</a>.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue