ICU-22618 Make unisetperf/draft possible to compile.

This commit is contained in:
Fredrik Roubert 2023-12-22 08:39:45 +09:00 committed by Fredrik Roubert
parent 4b6c85737a
commit 86b07da451
2 changed files with 11 additions and 3 deletions

View file

@ -22,6 +22,9 @@
* Uses the original set for supplementary code points.
*/
#include "unicode/uniset.h"
#include "unicode/uobject.h"
#include "unicode/usetiter.h"
#include "unicode/utypes.h"
#include "unicont.h"
#include "cmemory.h" // for UPRV_LENGTHOF
@ -175,7 +178,7 @@ public:
latin1Set[6]=(uint32_t)bits[3];
latin1Set[7]=(uint32_t)(bits[3]>>32);
restSet.remove(0, 0xffff);
restSet->remove(0, 0xffff);
}
~BitSet() {
@ -200,7 +203,7 @@ private:
int64_t shortBits[32];
int64_t *bits;
uint32_t latin1Bits[8];
uint32_t latin1Set[8];
UnicodeSet *restSet;
};

View file

@ -21,8 +21,13 @@
* for supplementary code points.
*/
#include "cmemory.h"
#include "unicode/uniset.h"
#include "unicode/uobject.h"
#include "unicode/usetiter.h"
#include "unicode/utypes.h"
#include "unicont.h"
#include "utrie.h"
using icu::UObject;
using icu::UnicodeSet;
@ -93,7 +98,7 @@ public:
latin1=UTRIE_GET8_LATIN1(&trie);
}
restSet.remove(0, 0xffff);
restSet->remove(0, 0xffff);
}
~TrieSet() {