moriyoshi Sun Feb 20 17:20:23 2005 EDT Added files: /php-src/ext/mbstring/libmbfl/filters mk_sb_tbl.awk Log: - Forgot to add this one.
http://cvs.php.net/co.php/php-src/ext/mbstring/libmbfl/filters/mk_sb_tbl.awk?r=1.1&p=1 Index: php-src/ext/mbstring/libmbfl/filters/mk_sb_tbl.awk +++ php-src/ext/mbstring/libmbfl/filters/mk_sb_tbl.awk #!/usr/bin/awk -f # # $Id: mk_sb_tbl.awk,v 1.1 2005/02/20 22:20:23 moriyoshi Exp $ # # Description: a script that generates a single byte code set to Unicode # mapping table. # BEGIN { FS="[ \t#]" } /^#/ { # Do nothing } { tbl[$1 + 0] = $2 } END { print "/* This file is automatically generated. Do not edit! */" if (IFNDEF_NAME) { print "#ifndef " IFNDEF_NAME } print "static const unsigned int " TABLE_NAME "[] = {" i = 160; for (;;) { printf("\t0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x", tbl[i++], tbl[i++], tbl[i++], tbl[i++], tbl[i++], tbl[i++], tbl[i++], tbl[i++]); if (i != 256) { printf(",\n"); } else { print break; } } print "};" if (IFNDEF_NAME) { print "#endif /* " IFNDEF_NAME " */" } } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php