ICU-2351 improve setToBogus() documentation

X-SVN-Rev: 10370
This commit is contained in:
Markus Scherer 2002-11-26 00:08:40 +00:00
parent c8dd26aef9
commit 4612e951c7

View File

@ -1775,10 +1775,12 @@ public:
* A "bogus" string does not contain a string value, and getBuffer() * A "bogus" string does not contain a string value, and getBuffer()
* and similar will return NULL. * and similar will return NULL.
* *
* The string object can be "revived" by assigning (operator=() or fastCopyFrom()) * The following methods, and no others, will clear a string object's bogus flag:
* another string, or by using one of the other setToXYZ functions, * - remove()
* or by using truncate() and remove() in ways that are always equivalent to assigning * - remove(0, INT32_MAX)
* an empty string. See examples below. * - truncate(0)
* - operator=() (assignment operator)
* - setTo(...)
* *
* The simplest ways to turn a bogus string into an empty one * The simplest ways to turn a bogus string into an empty one
* is to use the remove() function. * is to use the remove() function.