Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

U_STABLE int32_t U_EXPORT2 u_strlen ( const UChar *  s  ) 

Determine the length of an array of UChar.

Parameters:
s The array of UChars, NULL (U+0000) terminated.
Returns:
The number of UChars in chars, minus the terminator. ICU 2.0

Definition at line 990 of file ustring.c.

Referenced by CurrencyUnit::CurrencyUnit(), UnicodeString::endsWith(), MessageFormat::findKeyword(), NumberFormat::makeInstance(), CollationElementIterator::operator=(), UnicodeString::setTo(), UnicodeSet::span(), UnicodeSet::spanBack(), UnicodeStringTest::TestBasicManipulation(), CharIterTest::TestConstructionAndEqualityUChariter(), CollationAPITest::TestSortKey(), u_catgets(), u_fputs(), u_shapeArabic(), u_strFindFirst(), u_strFindLast(), u_strFromWCS(), u_strToWCS(), u_versionFromUString(), u_vsscanf_u(), ubidi_setPara(), ubidi_writeReverse(), ucnv_fromUChars(), ucnv_openU(), ucnv_setSubstString(), ucol_getRulesEx(), ucol_getSortKey(), ucol_openRules(), ucol_previous(), ucol_previousProcessed(), ucol_reset(), ucol_setOffset(), ucol_setVariableTop(), ucurr_forLocale(), ucurr_getName(), ucurr_getPluralName(), uiter_setString(), umsg_applyPattern(), umsg_autoQuoteApostrophe(), umsg_open(), umsg_vparse(), UnicodeString::UnicodeString(), unum_applyPattern(), unum_setTextAttribute(), uregex_open(), ures_openU(), usearch_openFromCollator(), usearch_setPattern(), usearch_setText(), uspoof_check(), usprep_prepare(), utrans_transIncrementalUChars(), and utrans_transUChars().

{
#if U_SIZEOF_WCHAR_T == U_SIZEOF_UCHAR
    return (int32_t)uprv_wcslen(s);
#else
    const UChar *t = s;
    while(*t != 0) {
      ++t;
    }
    return t - s;
#endif
}


Generated by  Doxygen 1.6.0   Back to index