| 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 4605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |