Changeset 512

Show
Ignore:
Timestamp:
01/05/2008 10:44:30 AM (9 months ago)
Author:
moo
Message:

use u_strlen instead of for loop

Files:
1 modified

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/* }}} */