OLD | NEW |
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 Loading... |
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 |
4005 }; | 4007 }; |
4006 | 4008 |
4007 /** | 4009 /** |
4008 * Creates a regular expression from the given pattern string and | 4010 * Creates a regular expression from the given pattern string and |
4009 * the flags bit field. May throw a JavaScript exception as | 4011 * the flags bit field. May throw a JavaScript exception as |
4010 * described in ECMA-262, 15.10.4.1. | 4012 * described in ECMA-262, 15.10.4.1. |
4011 * | 4013 * |
4012 * For example, | 4014 * For example, |
4013 * RegExp::New(v8::String::New("foo"), | 4015 * RegExp::New(v8::String::New("foo"), |
4014 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) | 4016 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) |
(...skipping 4464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8479 */ | 8481 */ |
8480 | 8482 |
8481 | 8483 |
8482 } // namespace v8 | 8484 } // namespace v8 |
8483 | 8485 |
8484 | 8486 |
8485 #undef TYPE_CHECK | 8487 #undef TYPE_CHECK |
8486 | 8488 |
8487 | 8489 |
8488 #endif // V8_H_ | 8490 #endif // V8_H_ |
OLD | NEW |