diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /JavaScriptCore/pcre/pcre_xclass.cpp | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'JavaScriptCore/pcre/pcre_xclass.cpp')
-rw-r--r-- | JavaScriptCore/pcre/pcre_xclass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/JavaScriptCore/pcre/pcre_xclass.cpp b/JavaScriptCore/pcre/pcre_xclass.cpp index 2fb36d7..a32edd4 100644 --- a/JavaScriptCore/pcre/pcre_xclass.cpp +++ b/JavaScriptCore/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 @@ -64,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; @@ -74,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); |