1
0
Fork 0

use u_strlen instead of for loop

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@512 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 16 years ago
parent 4df25f774b
commit 0c5f4896ce

@ -114,12 +114,7 @@ static inline int xc_zstrlen_char(zstr s)
/* {{{ xc_zstrlen_uchar */
static inline int xc_zstrlen_uchar(zstr s)
{
int i;
UChar *p = ZSTR_U(s);
for (i = 0; *p; i ++, p++) {
/* empty */
}
return i;
return u_strlen(ZSTR_U(s));
}
/* }}} */
/* {{{ xc_zstrlen */

Loading…
Cancel
Save