5#ifndef V8_REGEXP_SPECIAL_CASE_H_
6#define V8_REGEXP_SPECIAL_CASE_H_
12#include "unicode/uchar.h"
13#include "unicode/uniset.h"
14#include "unicode/unistr.h"
75class RegExpCaseFolding final :
public AllStatic {
77 static const icu::UnicodeSet& IgnoreSet();
78 static const icu::UnicodeSet& SpecialAddSet();
83 static UChar32 Canonicalize(UChar32 ch) {
88 icu::UnicodeString
s(ch);
93 icu::UnicodeString& u = s.toUpper();
96 if (u.length() != 1) {
101 UChar32 cu = u.char32At(0);
104 if (ch >= 128 && cu < 128) {
#define CHECK_LE(lhs, rhs)