X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/b5422865f473faf3977f31b96a635c4c8c4ede09..9dae56ea45a0f5f8136a5c93d6f3a7f99399ca73:/pcre/pcre_xclass.cpp diff --git a/pcre/pcre_xclass.cpp b/pcre/pcre_xclass.cpp index 4bf2a25..a32edd4 100644 --- a/pcre/pcre_xclass.cpp +++ b/pcre/pcre_xclass.cpp @@ -6,7 +6,7 @@ needed by JavaScriptCore and the rest of WebKit. Originally written by Philip Hazel Copyright (c) 1997-2006 University of Cambridge - Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved. + Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -40,6 +40,7 @@ POSSIBILITY OF SUCH DAMAGE. /* This module contains an internal function that is used to match an extended class (one that contains characters whose values are > 255). */ +#include "config.h" #include "pcre_internal.h" /************************************************* @@ -63,9 +64,9 @@ static inline void getUTF8CharAndAdvancePointer(int& c, const unsigned char*& su { c = *subjectPtr++; if ((c & 0xc0) == 0xc0) { - int gcaa = kjs_pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ + int gcaa = jsc_pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ int gcss = 6 * gcaa; - c = (c & kjs_pcre_utf8_table3[gcaa]) << gcss; + c = (c & jsc_pcre_utf8_table3[gcaa]) << gcss; while (gcaa-- > 0) { gcss -= 6; c |= (*subjectPtr++ & 0x3f) << gcss; @@ -73,7 +74,7 @@ static inline void getUTF8CharAndAdvancePointer(int& c, const unsigned char*& su } } -bool kjs_pcre_xclass(int c, const unsigned char* data) +bool jsc_pcre_xclass(int c, const unsigned char* data) { bool negated = (*data & XCL_NOT);