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 4674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4685 * An instance of the built-in RegExp constructor (ECMA-262, 15.10). | 4685 * An instance of the built-in RegExp constructor (ECMA-262, 15.10). |
4686 */ | 4686 */ |
4687 class V8_EXPORT RegExp : public Object { | 4687 class V8_EXPORT RegExp : public Object { |
4688 public: | 4688 public: |
4689 /** | 4689 /** |
4690 * Regular expression flag bits. They can be or'ed to enable a set | 4690 * Regular expression flag bits. They can be or'ed to enable a set |
4691 * of flags. | 4691 * of flags. |
4692 */ | 4692 */ |
4693 enum Flags { | 4693 enum Flags { |
4694 kNone = 0, | 4694 kNone = 0, |
4695 kGlobal = 1, | 4695 kGlobal = 1 << 0, |
4696 kIgnoreCase = 2, | 4696 kIgnoreCase = 1 << 1, |
4697 kMultiline = 4, | 4697 kMultiline = 1 << 2, |
4698 kSticky = 8, | 4698 kSticky = 1 << 3, |
4699 kUnicode = 16 | 4699 kUnicode = 1 << 4, |
| 4700 kDotAll = 1 << 5, |
4700 }; | 4701 }; |
4701 | 4702 |
4702 /** | 4703 /** |
4703 * Creates a regular expression from the given pattern string and | 4704 * Creates a regular expression from the given pattern string and |
4704 * the flags bit field. May throw a JavaScript exception as | 4705 * the flags bit field. May throw a JavaScript exception as |
4705 * described in ECMA-262, 15.10.4.1. | 4706 * described in ECMA-262, 15.10.4.1. |
4706 * | 4707 * |
4707 * For example, | 4708 * For example, |
4708 * RegExp::New(v8::String::New("foo"), | 4709 * RegExp::New(v8::String::New("foo"), |
4709 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) | 4710 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) |
(...skipping 5280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9990 */ | 9991 */ |
9991 | 9992 |
9992 | 9993 |
9993 } // namespace v8 | 9994 } // namespace v8 |
9994 | 9995 |
9995 | 9996 |
9996 #undef TYPE_CHECK | 9997 #undef TYPE_CHECK |
9997 | 9998 |
9998 | 9999 |
9999 #endif // INCLUDE_V8_H_ | 10000 #endif // INCLUDE_V8_H_ |
OLD | NEW |