| 1 | /* This is the public header file for JavaScriptCore's variant of the PCRE |
| 2 | library. While this library started out as a copy of PCRE, many of the |
| 3 | features of PCRE have been removed. This library now supports only the |
| 4 | regular expression features required by the JavaScript language |
| 5 | specification, and has only the functions needed by JavaScriptCore and the |
| 6 | rest of WebKit. |
| 7 | |
| 8 | Copyright (c) 1997-2005 University of Cambridge |
| 9 | Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 10 | |
| 11 | ----------------------------------------------------------------------------- |
| 12 | Redistribution and use in source and binary forms, with or without |
| 13 | modification, are permitted provided that the following conditions are met: |
| 14 | |
| 15 | * Redistributions of source code must retain the above copyright notice, |
| 16 | this list of conditions and the following disclaimer. |
| 17 | |
| 18 | * Redistributions in binary form must reproduce the above copyright |
| 19 | notice, this list of conditions and the following disclaimer in the |
| 20 | documentation and/or other materials provided with the distribution. |
| 21 | |
| 22 | * Neither the name of the University of Cambridge nor the names of its |
| 23 | contributors may be used to endorse or promote products derived from |
| 24 | this software without specific prior written permission. |
| 25 | |
| 26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 36 | POSSIBILITY OF SUCH DAMAGE. |
| 37 | ----------------------------------------------------------------------------- |
| 38 | */ |
| 39 | |
| 40 | // FIXME: This file needs to be renamed to JSRegExp.h; it's no longer PCRE. |
| 41 | |
| 42 | #ifndef JSRegExp_h |
| 43 | #define JSRegExp_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/pcre/pcre.h:43:9`! |
| 44 | |
| 45 | #include <wtf/unicode/Unicode.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/unicode/Unicode.h`/ |
| 46 | |
| 47 | struct JSRegExpcxx . . $ JSRegExp#; |
| 48 | |
| 49 | enum JSRegExpIgnoreCaseOptioncxx . . $ JSRegExpIgnoreCaseOption# { JSRegExpDoNotIgnoreCasecxx . . $ JSRegExpDoNotIgnoreCase., JSRegExpIgnoreCasecxx . . $ JSRegExpIgnoreCase. }; |
| 50 | enum JSRegExpMultilineOptioncxx . . $ JSRegExpMultilineOption# { JSRegExpSingleLinecxx . . $ JSRegExpSingleLine., JSRegExpMultilinecxx . . $ JSRegExpMultiline. }; |
| 51 | |
| 52 | /* jsRegExpExecute error codes */ |
| 53 | const int JSRegExpErrorNoMatchcxx . . $ JSRegExpErrorNoMatch. = -1; |
| 54 | const int JSRegExpErrorHitLimitcxx . . $ JSRegExpErrorHitLimit. = -2; |
| 55 | const int JSRegExpErrorNoMemorycxx . . $ JSRegExpErrorNoMemory. = -3; |
| 56 | const int JSRegExpErrorInternalcxx . . $ JSRegExpErrorInternal. = -4; |
| 57 | |
| 58 | JSRegExpcxx . . $ JSRegExp#* jsRegExpCompilecxx . . $ jsRegExpCompile(1cd3b9fc8507aa50).(const UCharcxx . . $ UChar#* pattern, int patternLength, |
| 59 | JSRegExpIgnoreCaseOptioncxx . . $ JSRegExpIgnoreCaseOption#, JSRegExpMultilineOptioncxx . . $ JSRegExpMultilineOption#, |
| 60 | unsigned* numSubpatterns, const char** errorMessage); |
| 61 | |
| 62 | int jsRegExpExecutecxx . . $ jsRegExpExecute(126e0e9594abe774).(const JSRegExpcxx . . $ JSRegExp#*, |
| 63 | const UCharcxx . . $ UChar#* subject, int subjectLength, int startOffset, |
| 64 | int* offsetsVector, int offsetsVectorLength); |
| 65 | |
| 66 | void jsRegExpFreecxx . . $ jsRegExpFree(5352636f5a3848ef).(JSRegExpcxx . . $ JSRegExp#*); |
| 67 | |
| 68 | #endif |