ICU-463 Fixed a typo in extract
X-SVN-Rev: 2356
This commit is contained in:
parent
e20ad2971f
commit
308a5811c1
@ -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,
|
||||
|
@ -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 = ⌖
|
||||
ucnv_fromUnicode(converter, &myTarget, myTargetLimit,
|
||||
|
Loading…
Reference in New Issue
Block a user