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

int32_t UnicodeString::getCapacity ( void   )  const [inline]

Return the capacity of the internal buffer of the UnicodeString object. This is useful together with the getBuffer functions. See there for details.

the number of UChars available in the internal buffer
See also:
getBuffer ICU 2.0

Definition at line 3490 of file unistr.h.

Referenced by fromUTF32(), Locale::getDisplayCountry(), Locale::getDisplayLanguage(), Locale::getDisplayName(), Locale::getDisplayScript(), Locale::getDisplayVariant(), getTerminatedBuffer(), UXMLParser::parseFile(), releaseBuffer(), and UnicodeStringTest::TestMiscellaneous().

{ return (fFlags&kUsingStackBuffer) ? US_STACKBUF_SIZE : fUnion.fFields.fCapacity; }

Generated by  Doxygen 1.6.0   Back to index