| OLD | NEW |
| (Empty) |
| 1 diff --git a/source/i18n/region.cpp b/source/i18n/region.cpp | |
| 2 index 085f704..15c5dd0 100644 | |
| 3 --- a/source/i18n/region.cpp | |
| 4 +++ b/source/i18n/region.cpp | |
| 5 @@ -67,8 +67,7 @@ static UVector *allRegions = NULL; | |
| 6 static const UChar UNKNOWN_REGION_ID [] = { 0x5A, 0x5A, 0 }; /* "ZZ" */ | |
| 7 static const UChar OUTLYING_OCEANIA_REGION_ID [] = { 0x51, 0x4F, 0 }; /* "QO"
*/ | |
| 8 static const UChar WORLD_ID [] = { 0x30, 0x30, 0x31, 0 }; /* "001" */ | |
| 9 -static const UChar RANGE_MARKER [] = { 0x7e, 0 }; /* "~" */ | |
| 10 -static const UnicodeString RANGE_MARKER_STRING(RANGE_MARKER); | |
| 11 +static const UChar RANGE_MARKER = 0x7eu; /* '~' */ | |
| 12 | |
| 13 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RegionNameEnumeration) | |
| 14 | |
| 15 @@ -121,7 +120,7 @@ void Region::loadRegionData(UErrorCode &status) { | |
| 16 | |
| 17 while ( ures_hasNext(regionRegular.getAlias()) ) { | |
| 18 UnicodeString regionName = ures_getNextUnicodeString(regionRegular.getA
lias(),NULL,&status); | |
| 19 - int32_t rangeMarkerLocation = regionName.indexOf(RANGE_MARKER_STRING); | |
| 20 + int32_t rangeMarkerLocation = regionName.indexOf(RANGE_MARKER); | |
| 21 UChar buf[6]; | |
| 22 regionName.extract(buf,6,status); | |
| 23 if ( rangeMarkerLocation > 0 ) { | |
| 24 @@ -140,7 +139,7 @@ void Region::loadRegionData(UErrorCode &status) { | |
| 25 | |
| 26 while ( ures_hasNext(regionMacro.getAlias()) ) { | |
| 27 UnicodeString regionName = ures_getNextUnicodeString(regionMacro.getAli
as(),NULL,&status); | |
| 28 - int32_t rangeMarkerLocation = regionName.indexOf(RANGE_MARKER_STRING); | |
| 29 + int32_t rangeMarkerLocation = regionName.indexOf(RANGE_MARKER); | |
| 30 UChar buf[6]; | |
| 31 regionName.extract(buf,6,status); | |
| 32 if ( rangeMarkerLocation > 0 ) { | |
| OLD | NEW |