Changeset 512 in svn


Ignore:
Timestamp:
2008-01-05T11:44:30+01:00 (7 years ago)
Author:
Xuefer
Message:

use u_strlen instead of for loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r509 r512  
    115115static inline int xc_zstrlen_uchar(zstr s)
    116116{
    117     int i;
    118     UChar *p = ZSTR_U(s);
    119     for (i = 0; *p; i ++, p++) {
    120         /* empty */
    121     }
    122     return i;
     117    return u_strlen(ZSTR_U(s));
    123118}
    124119/* }}} */
Note: See TracChangeset for help on using the changeset viewer.