Lines Matching defs:unicode

21 #include "unicode/uniset.h"
77 bool unicode() const { return IsUnicode(flags_); }
253 bool unicode() const { return IsUnicode(top_level_flags_) || force_unicode_; }
337 bool force_unicode_ = false; // Force parser to act as if unicode were set.
401 // Read the whole surrogate pair in case of unicode flag, if possible.
402 if (unicode() && position < input_length() &&
702 if (unicode()) {
715 if (unicode() && Next() >= '0' && Next() <= '9') {
747 unicode() && builder->ignore_case();
757 CHECK(!unicode());
773 if (unicode() || has_named_captures) {
804 if (unicode()) {
843 } else if (unicode()) {
1077 // patterns where the unicode flag is unset.
1090 // RegExpIdentifierName explicitly enables unicode (in spec terms, sets +U)
1092 // non-unicode patterns. Therefore Advance within the capture group name
1093 // has to force-enable unicode, and outside the name revert to default
1102 // Convert unicode escapes.
1392 // Accept both \uxxxx and \u{xxxxxx} (if harmony unicode escapes are
1395 if (current() == '{' && unicode()) {
1409 if (result && unicode() && unibrow::Utf16::IsLeadSurrogate(*value) &&
1592 // https://tc39.github.io/proposal-regexp-unicode-property-escapes/
1763 if (unicode()) {
1803 if (unicode()) {
1815 if (unicode()) {
1833 if (unicode()) {
1855 if (unicode()) {
1863 DCHECK(!unicode());
1900 if (unicode()) {
1946 if (!unicode()) return false;
1976 bool add_unicode_case_equivalents = unicode() && builder->ignore_case();
1997 if (unicode()) {
2090 DCHECK(unicode());
2141 DCHECK(unicode());
2144 } else if (unicode() && unibrow::Utf16::IsLeadSurrogate(c)) {
2146 } else if (unicode() && unibrow::Utf16::IsTrailSurrogate(c)) {
2226 if (!unicode()) return false;
2229 // separate pass to figure out unicode desugarings.
2246 if (unicode() && ignore_case()) {
2252 // In the case where ICU is not included, we act as if the unicode flag is
2300 if (unicode()) return false;