Skip to content

Commit

Permalink
ICU-22618 Make unisetperf/draft possible to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
roubert committed Mar 27, 2024
1 parent 4b6c857 commit 86b07da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions icu4c/source/test/perf/unisetperf/draft/bitset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -175,7 +178,7 @@ class BitSet : public UObject, public UnicodeContainable {
latin1Set[6]=(uint32_t)bits[3];
latin1Set[7]=(uint32_t)(bits[3]>>32);

restSet.remove(0, 0xffff);
restSet->remove(0, 0xffff);
}

~BitSet() {
Expand All @@ -200,7 +203,7 @@ class BitSet : public UObject, public UnicodeContainable {
int64_t shortBits[32];
int64_t *bits;

uint32_t latin1Bits[8];
uint32_t latin1Set[8];

UnicodeSet *restSet;
};
7 changes: 6 additions & 1 deletion icu4c/source/test/perf/unisetperf/draft/trieset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -93,7 +98,7 @@ class TrieSet : public UObject, public UnicodeContainable {
latin1=UTRIE_GET8_LATIN1(&trie);
}

restSet.remove(0, 0xffff);
restSet->remove(0, 0xffff);
}

~TrieSet() {
Expand Down

0 comments on commit 86b07da

Please sign in to comment.