mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-5821 Fix some issues for i5/OS
X-SVN-Rev: 22382
This commit is contained in:
parent
e3bfd984cf
commit
5978af8238
3 changed files with 8 additions and 8 deletions
|
@ -2060,19 +2060,19 @@ static void _testManyAddedPoints(void) {
|
|||
UChar text[90], dest[MAXLEN], expected[120];
|
||||
int destLen, i;
|
||||
for (i = 0; i < LENGTHOF(text); i+=3) {
|
||||
text[i] = 'a';
|
||||
text[i] = 0x0061; /* 'a' */
|
||||
text[i+1] = 0x05d0;
|
||||
text[i+2] = '3';
|
||||
text[i+2] = 0x0033; /* '3' */
|
||||
}
|
||||
ubidi_setReorderingMode(bidi, UBIDI_REORDER_INVERSE_LIKE_DIRECT);
|
||||
ubidi_setReorderingOptions(bidi, UBIDI_OPTION_INSERT_MARKS);
|
||||
ubidi_setPara(bidi, text, LENGTHOF(text), UBIDI_LTR, NULL, &errorCode);
|
||||
destLen = ubidi_writeReordered(bidi, dest, MAXLEN, 0, &errorCode);
|
||||
for (i = 0; i < LENGTHOF(expected); i+=4) {
|
||||
expected[i] = 'a';
|
||||
expected[i] = 0x0061; /* 'a' */
|
||||
expected[i+1] = 0x05d0;
|
||||
expected[i+2] = 0x200e;
|
||||
expected[i+3] = '3';
|
||||
expected[i+3] = 0x0033; /* '3' */
|
||||
}
|
||||
if (memcmp(dest, expected, destLen * sizeof(UChar))) {
|
||||
log_err("\nInvalid output with many added points, "
|
||||
|
|
|
@ -100,11 +100,11 @@ int32_t FieldsSet::parseFrom(const UnicodeString& str, const
|
|||
}
|
||||
|
||||
int32_t destCount = 0;
|
||||
UnicodeString *dest = split(str, ',', destCount);
|
||||
UnicodeString *dest = split(str, 0x002C /* ',' */, destCount);
|
||||
|
||||
for(int i = 0; i < destCount; i += 1) {
|
||||
int32_t dc = 0;
|
||||
UnicodeString *kv = split(dest[i], '=', dc);
|
||||
UnicodeString *kv = split(dest[i], 0x003D /* '=' */, dc);
|
||||
|
||||
if(dc != 2) {
|
||||
it_errln(UnicodeString("dc == ") + dc + UnicodeString("?"));
|
||||
|
|
|
@ -111,8 +111,8 @@ class FieldsSet {
|
|||
void clear();
|
||||
void clear(int32_t field);
|
||||
void set(int32_t field, int32_t amount);
|
||||
UBool isSet(int field) const;
|
||||
int32_t get(int field) const;
|
||||
UBool isSet(int32_t field) const;
|
||||
int32_t get(int32_t field) const;
|
||||
|
||||
UBool isSameType(const FieldsSet& other) const;
|
||||
int32_t fieldCount() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue