mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-474 make it to compile on HPUX 10.
X-SVN-Rev: 2217
This commit is contained in:
parent
e7d7910db3
commit
d428c71452
2 changed files with 10 additions and 2 deletions
|
@ -540,7 +540,11 @@ void TransliteratorAPITest::TestNullTransliterator(){
|
|||
doTest((UnicodeString)"nulTrans->transliterate", replaceable, s);
|
||||
replaceable.remove();
|
||||
replaceable.append(s);
|
||||
UTransPosition index={start, limit, 0, limit};
|
||||
UTransPosition index;
|
||||
index.contextStart =start;
|
||||
index.contextLimit = limit;
|
||||
index.start = 0;
|
||||
index.limit = limit;
|
||||
nullTrans->handleTransliterate(replaceable, index, TRUE);
|
||||
if(index.start != limit){
|
||||
errln("ERROR: NullTransliterator->handleTransliterate() failed");
|
||||
|
|
|
@ -768,7 +768,11 @@ void TransliteratorTest::TestPositionHandling(void) {
|
|||
errln("FAIL: RBT constructor");
|
||||
return;
|
||||
}
|
||||
UTransPosition pos = {POS[4*i], POS[4*i+1], POS[4*i+2], POS[4*i+3]};
|
||||
UTransPosition pos;
|
||||
pos.contextStart= POS[4*i];
|
||||
pos.contextLimit = POS[4*i+1];
|
||||
pos.start = POS[4*i+2];
|
||||
pos.limit = POS[4*i+3];
|
||||
UnicodeString rsource(DATA[3*i+1]);
|
||||
t->transliterate(rsource, pos, status);
|
||||
if (U_FAILURE(status)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue