Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/runtime/RegExp.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1999-2000 Harri Porten ([email protected])
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21
22 #ifndef RegExp_h
23 #define RegExp_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/RegExp.h:23:9`!
24
25 #include "UString.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h`/
26 #include "WREC.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wrec/WREC.h`/
27 #include "ExecutableAllocator.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h`/
28 #include <wtf/Forward.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Forward.h`/
29 #include <wtf/RefCounted.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/RefCounted.h`/
30 #include "yarr/RegexJIT.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexJIT.h`/
31 #include "yarr/RegexInterpreter.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexInterpreter.h`/
32
33 struct JSRegExpcxx . . $ JSRegExp#;
34
35 namespace JSCcxx . . $ `<built-in>:463:9`! {
36
37 class JSGlobalDatacxx . . $ QTJSC/JSGlobalData#;
38
39 class RegExpcxx . . $ QTJSC/RegExp# : public RefCounted<RegExp> {
40 public:
41 static PassRefPtrcxx . . $ PassRefPtr#<RegExpcxx . . $ QTJSC/RegExp#> createcxx . . $ QTJSC/RegExp#create(7d204926e6cc58b9).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, const UStringcxx . . $ QTJSC/UString#& pattern);
42 static PassRefPtrcxx . . $ PassRefPtr#<RegExpcxx . . $ QTJSC/RegExp#> createcxx . . $ QTJSC/RegExp#create(19bfe90a7859f628).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, const UStringcxx . . $ QTJSC/UString#& pattern, const UStringcxx . . $ QTJSC/UString#& flags);
43 #if !ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(YARR)
44 ~RegExp();
45 #endif
46
47 bool globalcxx . . $ QTJSC/RegExp#global(50ce9a9e25b4a850).() const { return m_flagBitscxx . . $ QTJSC/RegExp#m_flagBits. & Globalcxx . . $ QTJSC/RegExp#Global.; }
48 bool ignoreCasecxx . . $ QTJSC/RegExp#ignoreCase(50ce9a9e25b4a850).() const { return m_flagBitscxx . . $ QTJSC/RegExp#m_flagBits. & IgnoreCasecxx . . $ QTJSC/RegExp#IgnoreCase.; }
49 bool multilinecxx . . $ QTJSC/RegExp#multiline(50ce9a9e25b4a850).() const { return m_flagBitscxx . . $ QTJSC/RegExp#m_flagBits. & Multilinecxx . . $ QTJSC/RegExp#Multiline.; }
50
51 const UStringcxx . . $ QTJSC/UString#& patterncxx . . $ QTJSC/RegExp#pattern(de21ee9ecbd506fd).() const { return m_pattern; }
52
53 bool isValidcxx . . $ QTJSC/RegExp#isValid(50ce9a9e25b4a850).() const { return !m_constructionErrorcxx . . $ QTJSC/RegExp#m_constructionError.; }
54 const char* errorMessagecxx . . $ QTJSC/RegExp#errorMessage(a9f41ea0e82d88cf).() const { return m_constructionErrorcxx . . $ QTJSC/RegExp#m_constructionError.; }
55
56 int matchcxx . . $ QTJSC/RegExp#match(5ecf98ebfa6a0164).(const UStringcxx . . $ QTJSC/UString#&, int startOffset, Vectorcxx . . $ Vector#<int, 32>* ovector = 0);
57 unsigned numSubpatternscxx . . $ QTJSC/RegExp#numSubpatterns(ddd8539a2fcdd4ce).() const { return m_numSubpatternscxx . . $ QTJSC/RegExp#m_numSubpatterns.; }
58
59 private:
60 RegExpcxx . . $ QTJSC/RegExp#RegExp(da2e3d018b4db96).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, const UStringcxx . . $ QTJSC/UString#& pattern);
61 RegExpcxx . . $ QTJSC/RegExp#RegExp(61d25fb22c59c1f9).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, const UStringcxx . . $ QTJSC/UString#& pattern, const UStringcxx . . $ QTJSC/UString#& flags);
62
63 void compilecxx . . $ QTJSC/RegExp#compile(71c44650a83bfd83).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#*);
64
65 enum FlagBitscxx . . $ QTJSC/RegExp#FlagBits# { Globalcxx . . $ QTJSC/RegExp#Global. = 1, IgnoreCasecxx . . $ QTJSC/RegExp#IgnoreCase. = 2, Multilinecxx . . $ QTJSC/RegExp#Multiline. = 4 };
66
67 UStringcxx . . $ QTJSC/UString# m_patterncxx . . $ QTJSC/RegExp#m_pattern.; // FIXME: Just decompile m_regExp instead of storing this.
68 int m_flagBitscxx . . $ QTJSC/RegExp#m_flagBits.;
69 const char* m_constructionErrorcxx . . $ QTJSC/RegExp#m_constructionError.;
70 unsigned m_numSubpatternscxx . . $ QTJSC/RegExp#m_numSubpatterns.;
71
72 #if ENABLEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:57:9`!(YARR_JIT)
73 Yarrcxx . . $ QTJSC/Yarr/::RegexCodeBlockcxx . . $ QTJSC/Yarr/RegexCodeBlock# m_regExpJITCodecxx . . $ QTJSC/RegExp#m_regExpJITCode.;
74 #elif ENABLE(YARR)
75 OwnPtr<Yarr::BytecodePattern> m_regExpBytecode;
76 #else
77 #if ENABLE(WREC)
78 WREC::CompiledRegExp m_wrecFunction;
79 RefPtr<ExecutablePool> m_executablePool;
80 #endif
81 JSRegExp* m_regExp;
82 #endif
83 };
84
85 } // namespace JSC
86
87 #endif // RegExp_h