????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.191 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/mbstring/libmbfl/mbfl/ |
Upload File : |
#!/usr/bin/awk -f
#
# $Id$
#
# Description: a script to generate east asian width table.
#
BEGIN {
prev = -1
comma = 0
ORS = ""
FS = "[;.|# ]"
print "static const struct {\n\tint begin;\n\tint end;\n} " TABLE_NAME "[] = {\n\t"
}
/^#/ {
}
/^[0-9a-fA-F]+;/ {
if ($2 == "W" || $2 == "F") {
v = strtonum( "0x" $1 )
if (prev < 0) {
first = v
} else if (v - prev > 1) {
if (comma) {
print ",\n\t"
}
printf("{ 0x%04x, 0x%04x }", first, prev)
first = v
comma = 1
}
prev = v
} else {
if (prev >= 0) {
if (comma) {
print ",\n\t"
}
printf("{ 0x%04x, 0x%04x }", first, prev)
prev = -1
comma = 1
}
}
}
/^[0-9a-fA-F]+\.\./ {
if ($4 == "W" || $4 == "F") {
vs = strtonum( "0x" $1 )
ve = strtonum( "0x" $3 )
if (prev < 0) {
first = vs
} else if (vs - prev > 1) {
if (comma) {
print ",\n\t"
}
printf("{ 0x%04x, 0x%04x }", first, prev)
first = vs
comma = 1
}
prev = ve
} else {
if (prev >= 0) {
if (comma) {
print ",\n\t"
}
printf("{ 0x%04x, 0x%04x }", first, prev)
prev = -1
comma = 1
}
}
}
END {
if (prev >= 0) {
if (comma) {
print ",\n\t"
}
printf("{ 0x%04x, 0x%04x }", first, prev)
}
print "\n};\n"
}