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

Side by Side Diff: include/v8.h

Issue 1409013006: Revert of Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
Patch Set: Created 5 years, 1 month 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/api.cc » ('j') | no next file with comments »
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 3983 matching lines...) Expand 10 before | Expand all | Expand 10 after
3994 class V8_EXPORT RegExp : public Object { 3994 class V8_EXPORT RegExp : public Object {
3995 public: 3995 public:
3996 /** 3996 /**
3997 * Regular expression flag bits. They can be or'ed to enable a set 3997 * Regular expression flag bits. They can be or'ed to enable a set
3998 * of flags. 3998 * of flags.
3999 */ 3999 */
4000 enum Flags { 4000 enum Flags {
4001 kNone = 0, 4001 kNone = 0,
4002 kGlobal = 1, 4002 kGlobal = 1,
4003 kIgnoreCase = 2, 4003 kIgnoreCase = 2,
4004 kMultiline = 4, 4004 kMultiline = 4
4005 kSticky = 8,
4006 kUnicode = 16
4007 }; 4005 };
4008 4006
4009 /** 4007 /**
4010 * Creates a regular expression from the given pattern string and 4008 * Creates a regular expression from the given pattern string and
4011 * the flags bit field. May throw a JavaScript exception as 4009 * the flags bit field. May throw a JavaScript exception as
4012 * described in ECMA-262, 15.10.4.1. 4010 * described in ECMA-262, 15.10.4.1.
4013 * 4011 *
4014 * For example, 4012 * For example,
4015 * RegExp::New(v8::String::New("foo"), 4013 * RegExp::New(v8::String::New("foo"),
4016 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) 4014 * static_cast<RegExp::Flags>(kGlobal | kMultiline))
(...skipping 4456 matching lines...) Expand 10 before | Expand all | Expand 10 after
8473 */ 8471 */
8474 8472
8475 8473
8476 } // namespace v8 8474 } // namespace v8
8477 8475
8478 8476
8479 #undef TYPE_CHECK 8477 #undef TYPE_CHECK
8480 8478
8481 8479
8482 #endif // V8_H_ 8480 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698