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

virtual UnicodeString& UnicodeMatcher::toPattern ( UnicodeString result,
UBool  escapeUnprintable = FALSE 
) const [pure virtual]

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

Parameters:
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 those other than U+000A, U+0020..U+007E. ICU 2.4

Implemented in UnicodeSet, StringMatcher, TestFilter1, and TestFilter.

Referenced by StringMatcher::toPattern().


Generated by  Doxygen 1.6.0   Back to index