version 1.12, 2015/11/09 14:25:32 |
version 1.13, 2015/11/23 09:42:57 |
|
|
if (len == 1) { |
if (len == 1) { |
pr = prchar((int)ch); |
pr = prchar((int)ch); |
if (pwidth != NULL || bswidth != NULL) { |
if (pwidth != NULL || bswidth != NULL) { |
int len = strlen(pr); |
int prlen = strlen(pr); |
if (pwidth != NULL) |
if (pwidth != NULL) |
*pwidth = len; |
*pwidth = prlen; |
if (bswidth != NULL) |
if (bswidth != NULL) |
*bswidth = len; |
*bswidth = prlen; |
} |
} |
} else { |
} else { |
pr = prutfchar(ch); |
pr = prutfchar(ch); |
|
|
if (bswidth != NULL) |
if (bswidth != NULL) |
*bswidth = 0; |
*bswidth = 0; |
} else if (is_ubin_char(ch)) { |
} else if (is_ubin_char(ch)) { |
int len = strlen(pr); |
int prlen = strlen(pr); |
if (pwidth != NULL) |
if (pwidth != NULL) |
*pwidth = len; |
*pwidth = prlen; |
if (bswidth != NULL) |
if (bswidth != NULL) |
*bswidth = len; |
*bswidth = prlen; |
} else { |
} else { |
LWCHAR prev_ch = step_char(&p, -1, cmdbuf); |
LWCHAR prev_ch = step_char(&p, -1, cmdbuf); |
if (is_combining_char(prev_ch, ch)) { |
if (is_combining_char(prev_ch, ch)) { |