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

Replaceable * Replaceable::clone ( void   )  const [virtual, inherited]

Clone this object, an instance of a subclass of Replaceable. Clones can be used concurrently in multiple threads. If a subclass does not implement clone(), or if an error occurs, then NULL is returned. The clone functions in all subclasses return a pointer to a Replaceable because some compilers do not support covariant (same-as-this) return types; cast to the appropriate subclass if necessary. The caller must delete the clone.

a clone of this object
See also:
getDynamicClassID ICU 2.6

Reimplemented in UnicodeString, and TestReplaceable.

Definition at line 353 of file unistr.cpp.

References NULL.

  return NULL;

Generated by  Doxygen 1.6.0   Back to index