Changeset 62677 in webkit for trunk/JavaScriptCore/yarr/RegexInterpreter.h
- Timestamp:
- Jul 7, 2010, 9:53:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexInterpreter.h
r55633 r62677 1 1 /* 2 * Copyright (C) 2009 Apple Inc. All rights reserved.2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 31 31 #include "RegexParser.h" 32 32 #include "RegexPattern.h" 33 #include <wtf/PassOwnPtr.h> 33 34 #include <wtf/unicode/Unicode.h> 34 35 … … 293 294 294 295 struct BytecodePattern : FastAllocBase { 295 BytecodePattern( ByteDisjunction*body, Vector<ByteDisjunction*> allParenthesesInfo, RegexPattern& pattern)296 BytecodePattern(PassOwnPtr<ByteDisjunction> body, Vector<ByteDisjunction*> allParenthesesInfo, RegexPattern& pattern) 296 297 : m_body(body) 297 298 , m_ignoreCase(pattern.m_ignoreCase) … … 326 327 }; 327 328 328 BytecodePattern*byteCompileRegex(const UString& pattern, unsigned& numSubpatterns, const char*& error, bool ignoreCase = false, bool multiline = false);329 PassOwnPtr<BytecodePattern> byteCompileRegex(const UString& pattern, unsigned& numSubpatterns, const char*& error, bool ignoreCase = false, bool multiline = false); 329 330 int interpretRegex(BytecodePattern* v_regex, const UChar* input, unsigned start, unsigned length, int* output); 330 331
Note:
See TracChangeset
for help on using the changeset viewer.