summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2018-01-18 19:36:18 +0000
committerNeil Fuller <nfuller@google.com>2018-01-18 19:43:48 +0000
commitfbe9c25ce8ac8ad15e1c199da50aefbfc81314cf (patch)
tree6522de910c78b738483f69f2d86dda3080162ec6 /include/ScopedJavaUnicodeString.h
parent612d9168e32514b7caab3753d74a50d703730a4a (diff)
Make caching of CountryTimeZones easier
Some usecases for CountryTimeZones will have stronger consistency than others and can avoid I/O for each lookup if the same country code is used. Adding the isForCountryCode() method means the normalization logic for country codes can be encapsulated in CountryTimeZones rather than spread around, and only one of the strings being compared needs to be normalized. Bug: 63743683 Test: vogar luni/src/test/java/libcore/libcore/util/CountryTimeZonesTest.java Test: vogar luni/src/test/java/libcore/libcore/util/TimeZoneFinderTest.java Change-Id: I51524a2f07d26ae694d9175ae24fecf901c7c8b8
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions