Fix unknownMacro

This commit is contained in:
Konstantinos Margaritis 2024-05-15 17:04:50 +03:00
parent 1d4a2b2b60
commit 4a56b9c2e9
2 changed files with 9 additions and 8 deletions

View File

@ -34,14 +34,6 @@ using namespace std;
namespace ue2 {
#define UCP_FN(cat) \
CodePointSet getUcp##cat(void) { \
CodePointSet rv; \
for (u32 i = 0; i < ARRAY_LENGTH(ucp_##cat##_def); i += 2) { \
rv.setRange(ucp_##cat##_def[i], ucp_##cat##_def[i + 1]); \
} \
return rv; \
}
struct unicase {
unichar base;

View File

@ -36,6 +36,15 @@
namespace ue2 {
#define UCP_FN(cat) \
CodePointSet getUcp##cat(void) { \
CodePointSet rv; \
for (u32 i = 0; i < ARRAY_LENGTH(ucp_##cat##_def); i += 2) { \
rv.setRange(ucp_##cat##_def[i], ucp_##cat##_def[i + 1]); \
} \
return rv; \
}
class CodePointSet;
void make_caseless(CodePointSet *cps);
bool flip_case(unichar *c);