Tatsuya Kinoshita
2016-12-15 23:10:38 +09:00
parent 107810c145
commit 6eea841d3a
3 changed files with 10 additions and 6 deletions

View File

@@ -129,13 +129,18 @@ wtf_strwidth(wc_uchar *p)
return w;
}
/*
size_t
wtf_len1(wc_uchar *p)
{
return (size_t)WTF_LEN_MAP[*p];
size_t len, len_max = WTF_LEN_MAP[*p];
for (len = 0; *(p + len); len++)
if (len == len_max)
break;
if (len == 0)
len = 1;
return len;
}
*/
size_t
wtf_len(wc_uchar *p)