Changeset 39554 in webkit for trunk/JavaScriptCore/pcre/pcre_internal.h
- Timestamp:
- Jan 2, 2009, 12:59:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/pcre/pcre_internal.h
r36612 r39554 7 7 Originally written by Philip Hazel 8 8 Copyright (c) 1997-2006 University of Cambridge 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.9 Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 10 10 11 11 ----------------------------------------------------------------------------- … … 341 341 pcre_tables.c module. */ 342 342 343 #define kjs_pcre_utf8_table1_size 6344 345 extern const int kjs_pcre_utf8_table1[6];346 extern const int kjs_pcre_utf8_table2[6];347 extern const int kjs_pcre_utf8_table3[6];348 extern const unsigned char kjs_pcre_utf8_table4[0x40];349 350 extern const unsigned char kjs_pcre_default_tables[tables_length];343 #define jsc_pcre_utf8_table1_size 6 344 345 extern const int jsc_pcre_utf8_table1[6]; 346 extern const int jsc_pcre_utf8_table2[6]; 347 extern const int jsc_pcre_utf8_table3[6]; 348 extern const unsigned char jsc_pcre_utf8_table4[0x40]; 349 350 extern const unsigned char jsc_pcre_default_tables[tables_length]; 351 351 352 352 static inline unsigned char toLowerCase(unsigned char c) 353 353 { 354 static const unsigned char* lowerCaseChars = kjs_pcre_default_tables + lcc_offset;354 static const unsigned char* lowerCaseChars = jsc_pcre_default_tables + lcc_offset; 355 355 return lowerCaseChars[c]; 356 356 } … … 358 358 static inline unsigned char flipCase(unsigned char c) 359 359 { 360 static const unsigned char* flippedCaseChars = kjs_pcre_default_tables + fcc_offset;360 static const unsigned char* flippedCaseChars = jsc_pcre_default_tables + fcc_offset; 361 361 return flippedCaseChars[c]; 362 362 } … … 364 364 static inline unsigned char classBitmapForChar(unsigned char c) 365 365 { 366 static const unsigned char* charClassBitmaps = kjs_pcre_default_tables + cbits_offset;366 static const unsigned char* charClassBitmaps = jsc_pcre_default_tables + cbits_offset; 367 367 return charClassBitmaps[c]; 368 368 } … … 370 370 static inline unsigned char charTypeForChar(unsigned char c) 371 371 { 372 const unsigned char* charTypeMap = kjs_pcre_default_tables + ctypes_offset;372 const unsigned char* charTypeMap = jsc_pcre_default_tables + ctypes_offset; 373 373 return charTypeMap[c]; 374 374 } … … 414 414 but are not part of the public API and so not exported from the library. */ 415 415 416 extern int kjs_pcre_ucp_othercase(unsigned);417 extern bool kjs_pcre_xclass(int, const unsigned char*);416 extern int jsc_pcre_ucp_othercase(unsigned); 417 extern bool jsc_pcre_xclass(int, const unsigned char*); 418 418 419 419 #endif
Note:
See TracChangeset
for help on using the changeset viewer.