| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_REGEXP_REGEXP_AST_H_ | 5 #ifndef V8_REGEXP_REGEXP_AST_H_ |
| 6 #define V8_REGEXP_REGEXP_AST_H_ | 6 #define V8_REGEXP_REGEXP_AST_H_ |
| 7 | 7 |
| 8 #include "src/objects.h" | 8 #include "src/objects.h" |
| 9 #include "src/utils.h" | 9 #include "src/utils.h" |
| 10 #include "src/zone.h" | 10 #include "src/zone.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Returns a value representing the standard character set if is_standard() | 304 // Returns a value representing the standard character set if is_standard() |
| 305 // returns true. | 305 // returns true. |
| 306 // Currently used values are: | 306 // Currently used values are: |
| 307 // s : unicode whitespace | 307 // s : unicode whitespace |
| 308 // S : unicode non-whitespace | 308 // S : unicode non-whitespace |
| 309 // w : ASCII word character (digit, letter, underscore) | 309 // w : ASCII word character (digit, letter, underscore) |
| 310 // W : non-ASCII word character | 310 // W : non-ASCII word character |
| 311 // d : ASCII digit | 311 // d : ASCII digit |
| 312 // D : non-ASCII digit | 312 // D : non-ASCII digit |
| 313 // . : non-unicode non-newline | 313 // . : non-unicode non-newline |
| 314 // * : All characters | 314 // * : All characters, for advancing unanchored regexp |
| 315 uc16 standard_type() { return set_.standard_set_type(); } | 315 uc16 standard_type() { return set_.standard_set_type(); } |
| 316 ZoneList<CharacterRange>* ranges(Zone* zone) { return set_.ranges(zone); } | 316 ZoneList<CharacterRange>* ranges(Zone* zone) { return set_.ranges(zone); } |
| 317 bool is_negated() { return is_negated_; } | 317 bool is_negated() { return is_negated_; } |
| 318 | 318 |
| 319 private: | 319 private: |
| 320 CharacterSet set_; | 320 CharacterSet set_; |
| 321 bool is_negated_; | 321 bool is_negated_; |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 | 324 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 RegExpEmpty* AsEmpty() override; | 510 RegExpEmpty* AsEmpty() override; |
| 511 bool IsEmpty() override; | 511 bool IsEmpty() override; |
| 512 int min_match() override { return 0; } | 512 int min_match() override { return 0; } |
| 513 int max_match() override { return 0; } | 513 int max_match() override { return 0; } |
| 514 }; | 514 }; |
| 515 | 515 |
| 516 } // namespace internal | 516 } // namespace internal |
| 517 } // namespace v8 | 517 } // namespace v8 |
| 518 | 518 |
| 519 #endif // V8_REGEXP_REGEXP_AST_H_ | 519 #endif // V8_REGEXP_REGEXP_AST_H_ |
| OLD | NEW |