Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: include/v8.h

Issue 2780173002: [regexp] Add support for dotAll flag (Closed)
Patch Set: Reserve enough space for '.' character range Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/assembler.h » ('j') | test/mjsunit/harmony/regexp-dotall.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 4605 matching lines...) Expand 10 before | Expand all | Expand 10 after
4616 * An instance of the built-in RegExp constructor (ECMA-262, 15.10). 4616 * An instance of the built-in RegExp constructor (ECMA-262, 15.10).
4617 */ 4617 */
4618 class V8_EXPORT RegExp : public Object { 4618 class V8_EXPORT RegExp : public Object {
4619 public: 4619 public:
4620 /** 4620 /**
4621 * Regular expression flag bits. They can be or'ed to enable a set 4621 * Regular expression flag bits. They can be or'ed to enable a set
4622 * of flags. 4622 * of flags.
4623 */ 4623 */
4624 enum Flags { 4624 enum Flags {
4625 kNone = 0, 4625 kNone = 0,
4626 kGlobal = 1, 4626 kGlobal = 1 << 0,
4627 kIgnoreCase = 2, 4627 kIgnoreCase = 1 << 1,
4628 kMultiline = 4, 4628 kMultiline = 1 << 2,
4629 kSticky = 8, 4629 kSticky = 1 << 3,
4630 kUnicode = 16 4630 kUnicode = 1 << 4,
4631 kDotAll = 1 << 5,
4631 }; 4632 };
4632 4633
4633 /** 4634 /**
4634 * Creates a regular expression from the given pattern string and 4635 * Creates a regular expression from the given pattern string and
4635 * the flags bit field. May throw a JavaScript exception as 4636 * the flags bit field. May throw a JavaScript exception as
4636 * described in ECMA-262, 15.10.4.1. 4637 * described in ECMA-262, 15.10.4.1.
4637 * 4638 *
4638 * For example, 4639 * For example,
4639 * RegExp::New(v8::String::New("foo"), 4640 * RegExp::New(v8::String::New("foo"),
4640 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) 4641 * static_cast<RegExp::Flags>(kGlobal | kMultiline))
(...skipping 5261 matching lines...) Expand 10 before | Expand all | Expand 10 after
9902 */ 9903 */
9903 9904
9904 9905
9905 } // namespace v8 9906 } // namespace v8
9906 9907
9907 9908
9908 #undef TYPE_CHECK 9909 #undef TYPE_CHECK
9909 9910
9910 9911
9911 #endif // INCLUDE_V8_H_ 9912 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.h » ('j') | test/mjsunit/harmony/regexp-dotall.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698