Lines Matching refs:UText
51 #include "unicode/utext.h"
210 * to by this UText must not be deleted during the lifetime of the
219 static RegexPattern * U_EXPORT2 compile( UText *regex,
269 * to by this UText must not be deleted during the lifetime of the
279 static RegexPattern * U_EXPORT2 compile( UText *regex,
328 * to by this UText must not be deleted during the lifetime of the
336 static RegexPattern * U_EXPORT2 compile( UText *regex,
377 * or in a UText, using
378 * <code>utext_openUChars(UText *ut, const UChar *text, int64_t textLength, UErrorCode *status);</code>
435 static UBool U_EXPORT2 matches(UText *regex,
436 UText *input,
443 * even if the pattern was compiled from a UText.
445 * Note: If the pattern was originally compiled from a UText, and that UText was modified,
457 * UText, and that UText was modified, the returned UText may no longer reflect the RegexPattern
462 virtual UText *patternText(UErrorCode &status) const;
533 * @param dest An array of mutable UText structs to receive the results of the split.
534 * If a field is NULL, a new UText is allocated to contain the results for
535 * that field. This new UText is not guaranteed to be mutable.
547 virtual int32_t split(UText *input,
548 UText *dest[],
571 UText *fPattern; // The original pattern string.
678 RegexMatcher(UText *regexp, uint32_t flags, UErrorCode &status);
725 RegexMatcher(UText *regexp, UText *input,
737 * or in a UText, using
738 * <code>utext_openUChars(UText *ut, const UChar *text, int64_t textLength, UErrorCode *status);</code>
872 * Returns a shallow clone of the entire live input string with the UText current native index
875 * @param dest The UText into which the input should be cloned, or NULL to create a new UText
885 virtual UText *group(UText *dest, int64_t &group_len, UErrorCode &status) const;
888 * Returns a shallow clone of the entire live input string with the UText current native index
892 * @param dest The UText into which the input should be cloned, or NULL to create a new UText.
902 virtual UText *group(int32_t groupNum, UText *dest, int64_t &group_len, UErrorCode &status) const;
909 * @param dest A mutable UText in which the matching text is placed.
910 * If NULL, a new UText will be created (which may not be mutable).
914 * @return A string containing the matched input text. If a pre-allocated UText
919 virtual UText *group(int32_t groupNum, UText *dest, UErrorCode &status) const;
1104 virtual RegexMatcher &reset(UText *input);
1114 * ICU that the string has been relocated, and providing a new UText to access the
1131 virtual RegexMatcher &refreshInputText(UText *input, UErrorCode &status);
1142 * or in a UText, using
1143 * <code>utext_openUChars(UText *ut, const UChar *text, int64_t textLength, UErrorCode *status);</code>
1153 * was originally supplied as a UText.
1167 virtual UText *inputText() const;
1171 * UText parameter or by returning a shallow clone of the live input. Note that copying
1173 * @param dest The UText into which the input should be copied, or NULL to create a new UText
1179 virtual UText *getInput(UText *dest, UErrorCode &status) const;
1377 * @param dest a mutable UText in which the results are placed.
1378 * If NULL, a new UText will be created (which may not be mutable).
1381 * If a pre-allocated UText was provided, it will always be used and returned.
1385 virtual UText *replaceAll(UText *replacement, UText *dest, UErrorCode &status);
1427 * @param dest a mutable UText in which the results are placed.
1428 * If NULL, a new UText will be created (which may not be mutable).
1431 * If a pre-allocated UText was provided, it will always be used and returned.
1435 virtual UText *replaceFirst(UText *replacement, UText *dest, UErrorCode &status);
1481 * @param dest A mutable UText to which the results of the find-and-replace are appended.
1483 * @param replacement A UText that provides the text to be substituted for
1496 virtual RegexMatcher &appendReplacement(UText *dest,
1497 UText *replacement, UErrorCode &status);
1519 * @param dest A mutable UText to which the results of the find-and-replace are appended.
1526 virtual UText *appendTail(UText *dest, UErrorCode &status);
1567 * @param dest An array of mutable UText structs to receive the results of the split.
1568 * If a field is NULL, a new UText is allocated to contain the results for
1569 * that field. This new UText is not guaranteed to be mutable.
1581 virtual int32_t split(UText *input,
1582 UText *dest[],
1746 void init2(UText *t, UErrorCode &e); // Common initialization, part 2.
1768 int64_t appendGroup(int32_t groupNum, UText *dest, UErrorCode &status) const;
1779 UText *fInputText; // The text being matched. Is never NULL.
1780 UText *fAltInputText; // A shallow copy of the text being matched.