ICU-463 Fixed a typo in extract

X-SVN-Rev: 2356
This commit is contained in:
George Rhoten 2000-08-26 01:54:05 +00:00
parent e20ad2971f
commit 308a5811c1
2 changed files with 3 additions and 3 deletions

View File

@ -2571,7 +2571,7 @@ UnicodeString::extract(UTextOffset start,
int32_t length,
char *dst,
const char *codepage) const
{return extract(start, length, dst, 0x0FFFFFFF, codepage);}
{return extract(start, length, dst, INT32_MAX, codepage);}
inline void
UnicodeString::extractBetween(UTextOffset start,

View File

@ -290,7 +290,7 @@ UnicodeString::allocate(int32_t capacity) {
fCapacity = (words - 1) * (sizeof(int32_t) / U_SIZEOF_UCHAR);
fFlags = kLongString;
} else {
fArray = 0;
fLength = 0;
fCapacity = 0;
fFlags = kIsBogus;
return FALSE;
@ -1264,7 +1264,7 @@ UnicodeString::extract(UTextOffset start,
char target = 0;
int32_t size = 0;
myTargetLimit = myTarget + sizeof(char);
myTargetLimit = &target + sizeof(char);
while (mySource < mySourceLimit && U_SUCCESS(status)) {
myTarget = &target;
ucnv_fromUnicode(converter, &myTarget, myTargetLimit,