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

UBool UnicodeString::isBogus ( void   )  const [inline]

Determine if this object contains a valid string. A bogus string has no value. It is different from an empty string, although in both cases isEmpty() returns TRUE and length() returns 0. setToBogus() and isBogus() can be used to indicate that no string value is available. For a bogus string, getBuffer() and getTerminatedBuffer() return NULL, and length() returns 0.

Returns:
TRUE if the string is valid, FALSE otherwise
See also:
setToBogus() ICU 2.0

Definition at line 3498 of file unistr.h.

Referenced by Normalizer::concatenate(), LocaleKey::currentDescriptor(), LocaleKey::currentID(), extract(), LocaleKey::fallback(), findAndReplace(), ICUService::getDisplayNames(), ICUService::getKey(), ICUService::getVisibleIDs(), indexOf(), SimpleDateFormat::initNumberFormatters(), StringPair::isBogus(), lastIndexOf(), Normalizer::normalize(), operator==(), SimpleDateFormat::processOverrideString(), UnicodeStringTest::TestStackAllocation(), trim(), truncate(), and ucol_getTailoredSet().

{ return (UBool)(fFlags & kIsBogus); }


Generated by  Doxygen 1.6.0   Back to index