Changeset 7223 in webkit for trunk/JavaScriptCore/pcre/dftables.c
- Timestamp:
- Aug 10, 2004, 2:35:09 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/pcre/dftables.c
r2926 r7223 1 1 /************************************************* 2 2 * Perl-Compatible Regular Expressions * 3 * extended to UTF-16 for use in JavaScriptCore * 3 4 *************************************************/ 4 5 … … 10 11 11 12 Copyright (c) 1997-2001 University of Cambridge 13 Copyright (C) 2004 Apple Computer, Inc. 12 14 13 15 ----------------------------------------------------------------------------- … … 66 68 "character tables which are used when no tables are passed to the compile\n" 67 69 "function. */\n\n" 68 "static unsigned char pcre_default_tables[] = {\n\n"70 "static const unsigned char pcre_default_tables[] = {\n\n" 69 71 "/* This table is a lower casing table. */\n\n"); 70 72 71 73 printf(" "); 72 for (i = 0; i < 256; i++)74 for (i = 0; i < (int)ICHAR_MAP_SIZE; i++) 73 75 { 74 76 if ((i & 7) == 0 && i != 0) printf("\n "); 75 77 printf("%3d", *tables++); 76 if (i != 255) printf(",");78 if (i != ICHAR_MAP_SIZE - 1) printf(","); 77 79 } 78 80 printf(",\n\n"); … … 81 83 82 84 printf(" "); 83 for (i = 0; i < 256; i++)85 for (i = 0; i < (int)ICHAR_MAP_SIZE; i++) 84 86 { 85 87 if ((i & 7) == 0 && i != 0) printf("\n "); 86 88 printf("%3d", *tables++); 87 if (i != 255) printf(",");89 if (i != ICHAR_MAP_SIZE - 1) printf(","); 88 90 } 89 91 printf(",\n\n"); … … 121 123 122 124 printf(" "); 123 for (i = 0; i < 256; i++)125 for (i = 0; i < ICHAR_COUNT; i++) 124 126 { 125 127 if ((i & 7) == 0 && i != 0) … … 133 135 } 134 136 printf("0x%02x", *tables++); 135 if (i != 255) printf(",");137 if (i != ICHAR_COUNT - 1) printf(","); 136 138 } 137 139
Note:
See TracChangeset
for help on using the changeset viewer.