Home | History | Annotate | Download | only in unicode

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,
394 virtual RegexMatcher *matcher(UText *input,
407 * or in a UText, using
408 * <code>utext_openUChars(UText *ut, const UChar *text, int64_t textLength, UErrorCode *status);</code>
465 static UBool U_EXPORT2 matches(UText *regex,
466 UText *input,
473 * even if the pattern was compiled from a UText.
475 * Note: If the pattern was originally compiled from a UText, and that UText was modified,
487 * UText, and that UText was modified, the returned UText may no longer reflect the RegexPattern
492 virtual UText *patternText() const;
537 * @param dest An array of mutable UText structs to receive the results of the split.
538 * If a field is NULL, a new UText is allocated to contain the results for
539 * that field. This new UText is not guaranteed to be mutable.
551 virtual int32_t split(UText *input,
552 UText *dest[],
575 UText *fPattern; // The original pattern string.
682 RegexMatcher(UText *regexp, uint32_t flags, UErrorCode &status);
729 RegexMatcher(UText *regexp, UText *input,
741 * or in a UText, using
742 * <code>utext_openUChars(UText *ut, const UChar *text, int64_t textLength, UErrorCode *status);</code>
861 * @param dest A mutable UText in which the matching text is placed.
862 * If NULL, a new UText will be created (which may not be mutable).
868 * @return A string containing the matched input text. If a pre-allocated UText
873 virtual UText *group(UText *dest, MatcherDestIsUTextFlag flag, UErrorCode &status) const;
896 * @param dest A mutable UText in which the matching text is placed.
897 * If NULL, a new UText will be created (which may not be mutable).
901 * @return A string containing the matched input text. If a pre-allocated UText
906 virtual UText *group(int32_t groupNum, UText *dest, UErrorCode &status) const;
1033 virtual RegexMatcher &reset(UText *input);
1044 * ICU that the string has been relocated, and providing a new UText to access the
1055 virtual RegexMatcher &refreshInputText(UText *input, UErrorCode &status);
1067 * or in a UText, using
1068 * <code>utext_openUChars(UText *ut, const UChar *text, int64_t textLength, UErrorCode *status);</code>
1078 * was originally supplied as a UText.
1092 virtual UText *inputText() const;
1096 * UText parameter or by returning a shallow clone of the live input. Note that copying
1098 * @param dest The UText into which the input should be copied, or NULL to create a new UText
1103 virtual UText *getInput(UText *dest) const;
1269 * @param dest a mutable UText in which the results are placed.
1270 * If NULL, a new UText will be created (which may not be mutable).
1273 * If a pre-allocated UText was provided, it will always be used and returned.
1277 virtual UText *replaceAll(UText *replacement, UText *dest, UErrorCode &status);
1319 * @param dest a mutable UText in which the results are placed.
1320 * If NULL, a new UText will be created (which may not be mutable).
1323 * If a pre-allocated UText was provided, it will always be used and returned.
1327 virtual UText *replaceFirst(UText *replacement, UText *dest, UErrorCode &status);
1373 * @param dest A mutable UText to which the results of the find-and-replace are appended.
1375 * @param replacement A UText that provides the text to be substituted for
1388 virtual RegexMatcher &appendReplacement(UText *dest,
1389 UText *replacement, UErrorCode &status);
1411 * @param dest A mutable UText to which the results of the find-and-replace are appended.
1417 virtual UText *appendTail(UText *dest);
1458 * @param dest An array of mutable UText structs to receive the results of the split.
1459 * If a field is NULL, a new UText is allocated to contain the results for
1460 * that field. This new UText is not guaranteed to be mutable.
1472 virtual int32_t split(UText *input,
1473 UText *dest[],
1604 void init2(UText *t, UErrorCode &e); // Common initialization, part 2.
1625 int64_t appendGroup(int32_t groupNum, UText *dest, UErrorCode &status) const;
1636 UText *fInputText; // The text being matched. Is never NULL.
1637 UText *fAltInputText; // A shallow copy of the text being matched.