Logo Search packages:      
Sourcecode: icu version File versions  Download package

#define U8_FWD_N ( s,
i,
length,
 ) 

Value:

{ \
    int32_t __N=(n); \
    while(__N>0 && (i)<(length)) { \
        U8_FWD_1(s, i, length); \
        --__N; \
    } \
}
Advance the string offset from one code point boundary to the n-th next one, i.e., move forward by n code points. (Post-incrementing iteration.) "Safe" macro, checks for illegal sequences and for string boundaries.

Parameters:
s const uint8_t * string
i string offset, must be i<length
length string length
n number of code points to skip
See also:
U8_FWD_N_UNSAFE ICU 2.4

Definition at line 448 of file utf8.h.


Generated by  Doxygen 1.6.0   Back to index