ICU-865 Don't use true. Use TRUE.
X-SVN-Rev: 3912
This commit is contained in:
parent
cbf7889f1d
commit
6312cc8e02
@ -523,7 +523,7 @@ unorm_quickCheck(const UChar *source,
|
|||||||
if (sourcelength >= 0) {
|
if (sourcelength >= 0) {
|
||||||
psource = source;
|
psource = source;
|
||||||
pend = source + sourcelength;
|
pend = source + sourcelength;
|
||||||
while (true) {
|
for (;;) {
|
||||||
if (psource >= pend) {
|
if (psource >= pend) {
|
||||||
return UNORM_YES;
|
return UNORM_YES;
|
||||||
}
|
}
|
||||||
@ -537,7 +537,7 @@ unorm_quickCheck(const UChar *source,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
psource = source;
|
psource = source;
|
||||||
while (true) {
|
for (;;) {
|
||||||
if (*psource == 0) {
|
if (*psource == 0) {
|
||||||
return UNORM_YES;
|
return UNORM_YES;
|
||||||
}
|
}
|
||||||
@ -551,7 +551,7 @@ unorm_quickCheck(const UChar *source,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sourcelength >= 0) {
|
if (sourcelength >= 0) {
|
||||||
while (true) {
|
for (;;) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
if (psource >= pend) {
|
if (psource >= pend) {
|
||||||
@ -587,7 +587,7 @@ unorm_quickCheck(const UChar *source,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
while (true) {
|
for (;;) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
UTF_NEXT_CHAR(psource, count, pend - psource, codepoint);
|
UTF_NEXT_CHAR(psource, count, pend - psource, codepoint);
|
||||||
if (codepoint == 0) {
|
if (codepoint == 0) {
|
||||||
@ -997,7 +997,7 @@ static const uint8_t FCD_STAGE_3_[] =
|
|||||||
* @param sourcelength length of source to test
|
* @param sourcelength length of source to test
|
||||||
* @paran mode normalization format from the enum UNormalizationMode
|
* @paran mode normalization format from the enum UNormalizationMode
|
||||||
* @param status A pointer to an UErrorCode to receive any errors
|
* @param status A pointer to an UErrorCode to receive any errors
|
||||||
* @return true if source is in FCD format, false otherwise
|
* @return TRUE if source is in FCD format, FALSE otherwise
|
||||||
*/
|
*/
|
||||||
U_CAPI UBool
|
U_CAPI UBool
|
||||||
checkFCD(const UChar* source, int32_t sourcelength, UErrorCode* status)
|
checkFCD(const UChar* source, int32_t sourcelength, UErrorCode* status)
|
||||||
@ -1014,7 +1014,7 @@ checkFCD(const UChar* source, int32_t sourcelength, UErrorCode* status)
|
|||||||
if (sourcelength >= 0) {
|
if (sourcelength >= 0) {
|
||||||
psource = source;
|
psource = source;
|
||||||
pend = source + sourcelength;
|
pend = source + sourcelength;
|
||||||
while (true) {
|
for (;;) {
|
||||||
if (psource >= pend) {
|
if (psource >= pend) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@ -1029,7 +1029,7 @@ checkFCD(const UChar* source, int32_t sourcelength, UErrorCode* status)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
psource = source;
|
psource = source;
|
||||||
while (true) {
|
for (;;) {
|
||||||
if (*psource == 0) {
|
if (*psource == 0) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@ -1043,7 +1043,7 @@ checkFCD(const UChar* source, int32_t sourcelength, UErrorCode* status)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sourcelength >= 0) {
|
if (sourcelength >= 0) {
|
||||||
while (true) {
|
for (;;) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
if (psource >= pend) {
|
if (psource >= pend) {
|
||||||
@ -1067,7 +1067,7 @@ checkFCD(const UChar* source, int32_t sourcelength, UErrorCode* status)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
while (true) {
|
for (;;) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
UTF_NEXT_CHAR(psource, count, pend - psource, codepoint);
|
UTF_NEXT_CHAR(psource, count, pend - psource, codepoint);
|
||||||
if (codepoint == 0) {
|
if (codepoint == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user