Browse Source

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 14 years ago
parent
commit
0c5f4896ce
  1. 7
      processor/head.m4

7
processor/head.m4

@ -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