Logo Search packages:      
Sourcecode: icu version File versions

virtual UnicodeString& UnicodeReplacer::toReplacerPattern ( UnicodeString result,
UBool  escapeUnprintable 
) const [pure virtual]

Returns a string representation of this replacer. If the result of calling this function is passed to the appropriate parser, typically TransliteratorParser, it will produce another replacer that is equal to this one.

result the string to receive the pattern. Previous contents will be deleted.
escapeUnprintable if TRUE then convert unprintable character to their hex escape representations, \uxxxx or \Uxxxxxxxx. Unprintable characters are defined by Utility.isUnprintable().
a reference to 'result'. ICU 2.4

Implemented in FunctionReplacer, StringMatcher, and StringReplacer.

Referenced by StringReplacer::toReplacerPattern(), FunctionReplacer::toReplacerPattern(), and TransliterationRule::toRule().

Generated by  Doxygen 1.6.0   Back to index