From 0a55346c642106cf0245fb3e6b5486dc4e2b73e3 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Fri, 26 Feb 2010 00:37:44 +0000 Subject: [PATCH] ICU-7047 document that an isBogus() UnicodeString also isEmpty() X-SVN-Rev: 27692 --- icu4c/source/common/unicode/unistr.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/icu4c/source/common/unicode/unistr.h b/icu4c/source/common/unicode/unistr.h index a7f8281626..aba4c45a92 100644 --- a/icu4c/source/common/unicode/unistr.h +++ b/icu4c/source/common/unicode/unistr.h @@ -1728,9 +1728,10 @@ public: /** * Determine if this object contains a valid string. - * A bogus string has no value. It is different from an empty string. - * It can be used to indicate that no string value is available. - * getBuffer() and getTerminatedBuffer() return NULL, and + * 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. * * @return TRUE if the string is valid, FALSE otherwise