diff options
Diffstat (limited to 'js/src/regexp/special-case.cc')
-rw-r--r-- | js/src/regexp/special-case.cc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/js/src/regexp/special-case.cc b/js/src/regexp/special-case.cc new file mode 100644 index 0000000000..d60b987645 --- /dev/null +++ b/js/src/regexp/special-case.cc @@ -0,0 +1,38 @@ +// Copyright 2019 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Automatically generated by regexp/gen-regexp-special-case.cc +// The following functions are used to build icu::UnicodeSet +// for specical cases different between Unicode and ECMA262. +#ifdef V8_INTL_SUPPORT +#include "regexp/special-case.h" + +#include "unicode/uniset.h" +namespace v8 { +namespace internal { + +icu::UnicodeSet BuildIgnoreSet() { + icu::UnicodeSet set; + set.add(0x3f4); + set.add(0x2126); + set.add(0x212a, 0x212b); + set.freeze(); + return set; +} +icu::UnicodeSet BuildSpecialAddSet() { + icu::UnicodeSet set; + set.add(0xc5); + set.add(0xe5); + set.add(0x398); + set.add(0x3a9); + set.add(0x3b8); + set.add(0x3c9); + set.add(0x3d1); + set.freeze(); + return set; +} + +} // namespace internal +} // namespace v8 +#endif // V8_INTL_SUPPORT |