Update to 72-1
Update Diary https://docs.google.com/document/d/1bzme4zR_swaqMoJIYLL9wwk-rsjdAdjGrU073h0TJbo/edit#
Release Note
ICU 72 https://icu.unicode.org/download/72
CLDR 42 https://cldr.unicode.org/index/downloads/cldr-42
Size Impact:
Android +85.1K
Cast: +22.9K
ChromeOS: +55.8K
Desktop: +77K
Bug: 1371208
Change-Id: If5146e996917339d4d41b3f22a2af2e9977a1d4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/deps/icu/+/3994603
Reviewed-by: Frank Tang <ftang@chromium.org>
Reviewed-by: Jungshik Shin <jshin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/deps/icu/+/4015159
diff --git a/source/tools/toolutil/udbgutil.cpp b/source/tools/toolutil/udbgutil.cpp
index 9936945..dcf71b2 100644
--- a/source/tools/toolutil/udbgutil.cpp
+++ b/source/tools/toolutil/udbgutil.cpp
@@ -239,7 +239,7 @@
/**
* @param type type of item
- * @param actual TRUE: for the actual enum's type (UCAL_FIELD_COUNT, etc), or FALSE for the string count
+ * @param actual true: for the actual enum's type (UCAL_FIELD_COUNT, etc), or false for the string count
*/
static int32_t _udbg_enumCount(UDebugEnumType type, UBool actual) {
switch(type) {
@@ -288,16 +288,16 @@
// implementation
int32_t udbg_enumCount(UDebugEnumType type) {
- return _udbg_enumCount(type, FALSE);
+ return _udbg_enumCount(type, false);
}
int32_t udbg_enumExpectedCount(UDebugEnumType type) {
- return _udbg_enumCount(type, TRUE);
+ return _udbg_enumCount(type, true);
}
const char * udbg_enumName(UDebugEnumType type, int32_t field) {
if(field<0 ||
- field>=_udbg_enumCount(type,FALSE)) { // also will catch unsupported items
+ field>=_udbg_enumCount(type,false)) { // also will catch unsupported items
return NULL;
} else {
const Field *fields = _udbg_enumFields(type);
@@ -311,7 +311,7 @@
int32_t udbg_enumArrayValue(UDebugEnumType type, int32_t field) {
if(field<0 ||
- field>=_udbg_enumCount(type,FALSE)) { // also will catch unsupported items
+ field>=_udbg_enumCount(type,false)) { // also will catch unsupported items
return -1;
} else {
const Field *fields = _udbg_enumFields(type);
@@ -324,18 +324,18 @@
}
int32_t udbg_enumByName(UDebugEnumType type, const char *value) {
- if(type<0||type>=_udbg_enumCount(UDBG_UDebugEnumType, TRUE)) {
+ if(type<0||type>=_udbg_enumCount(UDBG_UDebugEnumType, true)) {
return -1; // type out of range
}
const Field *fields = _udbg_enumFields(type);
if (fields != NULL) {
- for(int32_t field = 0;field<_udbg_enumCount(type, FALSE);field++) {
+ for(int32_t field = 0;field<_udbg_enumCount(type, false);field++) {
if(!strcmp(value, fields[field].str + fields[field].prefix)) {
return fields[field].num;
}
}
// try with the prefix
- for(int32_t field = 0;field<_udbg_enumCount(type, FALSE);field++) {
+ for(int32_t field = 0;field<_udbg_enumCount(type, false);field++) {
if(!strcmp(value, fields[field].str)) {
return fields[field].num;
}
@@ -490,7 +490,7 @@
paramLocaleDefaultBcp47(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) {
if(U_FAILURE(*status))return 0;
const char *def = uloc_getDefault();
- return uloc_toLanguageTag(def,target,targetCapacity,FALSE,status);
+ return uloc_toLanguageTag(def,target,targetCapacity,false,status);
}
@@ -650,18 +650,18 @@
{
const std::string ticket = mapTicketId(ticketStr);
if(fTable.find(ticket) == fTable.end()) {
- if(firstForTicket!=NULL) *firstForTicket = TRUE;
+ if(firstForTicket!=NULL) *firstForTicket = true;
fTable[ticket] = std::map < std::string, std::set < std::string > >();
} else {
- if(firstForTicket!=NULL) *firstForTicket = FALSE;
+ if(firstForTicket!=NULL) *firstForTicket = false;
}
if(where==NULL) return;
if(fTable[ticket].find(where) == fTable[ticket].end()) {
- if(firstForWhere!=NULL) *firstForWhere = TRUE;
+ if(firstForWhere!=NULL) *firstForWhere = true;
fTable[ticket][where] = std::set < std::string >();
} else {
- if(firstForWhere!=NULL) *firstForWhere = FALSE;
+ if(firstForWhere!=NULL) *firstForWhere = false;
}
if(msg==NULL || !*msg) return;
@@ -674,18 +674,18 @@
{
const std::string ticket = mapTicketId(ticketStr);
if(fTable.find(ticket) == fTable.end()) {
- if(firstForTicket!=NULL) *firstForTicket = TRUE;
+ if(firstForTicket!=NULL) *firstForTicket = true;
fTable[ticket] = std::map < std::string, std::set < std::string > >();
} else {
- if(firstForTicket!=NULL) *firstForTicket = FALSE;
+ if(firstForTicket!=NULL) *firstForTicket = false;
}
if(where==NULL) return;
if(fTable[ticket].find(where) == fTable[ticket].end()) {
- if(firstForWhere!=NULL) *firstForWhere = TRUE;
+ if(firstForWhere!=NULL) *firstForWhere = true;
fTable[ticket][where] = std::set < std::string >();
} else {
- if(firstForWhere!=NULL) *firstForWhere = FALSE;
+ if(firstForWhere!=NULL) *firstForWhere = false;
}
if(msg==NULL || !*msg) return;
@@ -696,7 +696,7 @@
UBool KnownIssues::print()
{
if(fTable.empty()) {
- return FALSE;
+ return false;
}
std::cout << "KNOWN ISSUES" << std::endl;
@@ -723,7 +723,7 @@
}
}
}
- return TRUE;
+ return true;
}
U_CAPI void *udbg_knownIssue_openU(void *ptr, const char *ticket, char *where, const UChar *msg, UBool *firstForTicket,
@@ -753,10 +753,10 @@
U_CAPI UBool udbg_knownIssue_print(void *ptr) {
KnownIssues *t = static_cast<KnownIssues*>(ptr);
if(t==NULL) {
- return FALSE;
+ return false;
} else {
t->print();
- return TRUE;
+ return true;
}
}