Count Unicode code points in the length UChar code units of the string. A code point may occupy either one or two UChar code units. Counting code points involves reading all code units.
This functions is basically the inverse of moveIndex32().
|start ||the index of the first code unit to check |
|length ||the number of UChar code units to check |
- the number of code points in the specified code units
- See also:
- length ICU 2.0
Definition at line 692 of file unistr.cpp.
Referenced by NumberingSystem::createInstance(), and CanonicalIterator::permute().
return u_countChar32(getArrayStart()+start, length);