OLD | NEW |
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 enum Flags { | 1379 enum Flags { |
1380 kNone = 0, | 1380 kNone = 0, |
1381 kGlobal = 1, | 1381 kGlobal = 1, |
1382 kIgnoreCase = 2, | 1382 kIgnoreCase = 2, |
1383 kMultiline = 4 | 1383 kMultiline = 4 |
1384 }; | 1384 }; |
1385 | 1385 |
1386 /** | 1386 /** |
1387 * Creates a regular expression from the given pattern string and | 1387 * Creates a regular expression from the given pattern string and |
1388 * the flags bit field. May throw a JavaScript exception as | 1388 * the flags bit field. May throw a JavaScript exception as |
1389 * described in ECMA-252, 15.10.4.1. | 1389 * described in ECMA-262, 15.10.4.1. |
1390 * | 1390 * |
1391 * For example, | 1391 * For example, |
1392 * RegExp::New(v8::String::New("foo"), | 1392 * RegExp::New(v8::String::New("foo"), |
1393 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) | 1393 * static_cast<RegExp::Flags>(kGlobal | kMultiline)) |
1394 * is equivalent to evaluating "/foo/gm". | 1394 * is equivalent to evaluating "/foo/gm". |
1395 */ | 1395 */ |
1396 V8EXPORT static Local<RegExp> New(Handle<String> pattern, | 1396 V8EXPORT static Local<RegExp> New(Handle<String> pattern, |
1397 Flags flags); | 1397 Flags flags); |
1398 | 1398 |
1399 /** | 1399 /** |
(...skipping 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3740 | 3740 |
3741 | 3741 |
3742 } // namespace v8 | 3742 } // namespace v8 |
3743 | 3743 |
3744 | 3744 |
3745 #undef V8EXPORT | 3745 #undef V8EXPORT |
3746 #undef TYPE_CHECK | 3746 #undef TYPE_CHECK |
3747 | 3747 |
3748 | 3748 |
3749 #endif // V8_H_ | 3749 #endif // V8_H_ |
OLD | NEW |