diff options
author | romankoshelev <romankoshelev@yandex-team.com> | 2024-05-13 11:00:27 +0300 |
---|---|---|
committer | romankoshelev <romankoshelev@yandex-team.com> | 2024-05-13 11:13:05 +0300 |
commit | 5b22fadb0f035a3b82c328e0ae710ad2b92f6eac (patch) | |
tree | e15dc649c79c4fb78f35cd6694dfe9af9bfcc0ad /contrib/libs/icu/io/uscanf_p.cpp | |
parent | 5946aa7d3cbca62f6bcf074e8a2b9346e7a96af4 (diff) | |
download | ydb-5b22fadb0f035a3b82c328e0ae710ad2b92f6eac.tar.gz |
Update ICU to 75.1
904da4ae1c86fc5542eac7f1cd18d97b72eb8517
Diffstat (limited to 'contrib/libs/icu/io/uscanf_p.cpp')
-rw-r--r-- | contrib/libs/icu/io/uscanf_p.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/contrib/libs/icu/io/uscanf_p.cpp b/contrib/libs/icu/io/uscanf_p.cpp index 0a41dfe07d..3def83e1ff 100644 --- a/contrib/libs/icu/io/uscanf_p.cpp +++ b/contrib/libs/icu/io/uscanf_p.cpp @@ -457,7 +457,7 @@ u_scanf_double_handler(UFILE *input, format = u_locbund_getNumberFormat(&input->str.fBundle, UNUM_DECIMAL); /* handle error */ - if(format == 0) + if (format == nullptr) return 0; /* Skip the positive prefix. ICU normally can't handle this due to strict parsing. */ @@ -528,7 +528,7 @@ u_scanf_scientific_handler(UFILE *input, format = u_locbund_getNumberFormat(&input->str.fBundle, UNUM_SCIENTIFIC); /* handle error */ - if(format == 0) + if (format == nullptr) return 0; /* set the appropriate flags on the formatter */ @@ -635,7 +635,7 @@ u_scanf_scidbl_handler(UFILE *input, genericFormat = u_locbund_getNumberFormat(&input->str.fBundle, UNUM_DECIMAL); /* handle error */ - if(scientificFormat == 0 || genericFormat == 0) + if (scientificFormat == nullptr || genericFormat == nullptr) return 0; /* Skip the positive prefix. ICU normally can't handle this due to strict parsing. */ @@ -720,7 +720,7 @@ u_scanf_integer_handler(UFILE *input, format = u_locbund_getNumberFormat(&input->str.fBundle, UNUM_DECIMAL); /* handle error */ - if(format == 0) + if (format == nullptr) return 0; /* for integer types, do not attempt to parse fractions */ @@ -806,7 +806,7 @@ u_scanf_percent_handler(UFILE *input, format = u_locbund_getNumberFormat(&input->str.fBundle, UNUM_PERCENT); /* handle error */ - if(format == 0) + if (format == nullptr) return 0; /* Skip the positive prefix. ICU normally can't handle this due to strict parsing. */ @@ -1040,7 +1040,7 @@ u_scanf_spellout_handler(UFILE *input, format = u_locbund_getNumberFormat(&input->str.fBundle, UNUM_SPELLOUT); /* handle error */ - if(format == 0) + if (format == nullptr) return 0; /* Skip the positive prefix. ICU normally can't handle this due to strict parsing. */ @@ -1430,8 +1430,7 @@ u_scanf_parse(UFILE *f, /* call the handler function */ handler = g_u_scanf_infos[ handlerNum ].handler; - if(handler != 0) { - + if (handler != nullptr) { /* reset count to 1 so that += for alias works. */ count = 1; |