Skip to content

Commit

Permalink
Bug 1879225: Update special-case.cc r=dminor
Browse files Browse the repository at this point in the history
This is an auto-generated file in V8 that changes very rarely (see https://bugzilla.mozilla.org/show_bug.cgi?id=1624015#c3). I copied this version over from a local build of V8.

Differential Revision: https://phabricator.services.mozilla.com/D201917
  • Loading branch information
iainireland committed Feb 28, 2024
1 parent 2b0d5db commit 97d55a3
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions js/src/irregexp/imported/special-case.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,6 @@ const icu::UnicodeSet& RegExpCaseFolding::SpecialAddSet() {
return set.Pointer()->set;
}

icu::UnicodeSet BuildUnicodeNonSimpleCloseOverSet() {
icu::UnicodeSet set;
set.add(0x390);
set.add(0x3b0);
set.add(0x1fd3);
set.add(0x1fe3);
set.add(0xfb05, 0xfb06);
set.freeze();
return set;
}

struct UnicodeNonSimpleCloseOverSetData {
UnicodeNonSimpleCloseOverSetData() : set(BuildUnicodeNonSimpleCloseOverSet()) {}
const icu::UnicodeSet set;
};

//static
const icu::UnicodeSet& RegExpCaseFolding::UnicodeNonSimpleCloseOverSet() {
static base::LazyInstance<UnicodeNonSimpleCloseOverSetData>::type set =
LAZY_INSTANCE_INITIALIZER;
return set.Pointer()->set;
}


} // namespace internal
} // namespace v8
Expand Down

0 comments on commit 97d55a3

Please sign in to comment.