• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/i18n/unicode/

Lines Matching refs:text

17  * \brief C++ API: Service for searching text based on RuleBasedCollator.
31 * language-sensitive text searching based on the comparison rules defined
40 * Let S' be the sub-string of a text string S between the offsets start and
43 * A pattern string P matches a text string S at the offsets [start, end]
54 * This search has APIs similar to that of other text iteration mechanisms
56 * APIs, it is easy to scan through text looking for all occurrences of
65 * within the text string to be searched, e.g. <tt>setOffset</tt>,
91 * for the pattern "abab" in the text "ababab", where else mutually
108 * and examples of how to use instances of this class to implement text
143 * @param pattern The text for which this object will search.
144 * @param text The text in which to search for the pattern.
146 * comparison rules used to determine whether text in the
150 * indices in the target text are not boundaries as
154 * @param status for errors if any. If pattern or text is NULL, or if
155 * either the length of pattern or text is 0 then an
159 StringSearch(const UnicodeString &pattern, const UnicodeString &text,
168 * @param pattern The text for which this object will search.
169 * @param text The text in which to search for the pattern.
172 * determine whether text in the pattern and target
177 * indices in the target text are not boundaries as
182 * text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned.
186 const UnicodeString &text,
197 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
198 * will be done during searching for this version. The block of text
200 * @param pattern The text for which this object will search.
201 * @param text The text iterator in which to search for the pattern.
203 * comparison rules used to determine whether text in the
208 * indices in the target text are not boundaries as
213 * text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned.
216 StringSearch(const UnicodeString &pattern, CharacterIterator &text,
226 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
227 * will be done during searching for this version. The block of text
229 * @param pattern The text for which this object will search.
230 * @param text The text in which to search for the pattern.
233 * determine whether text in the pattern and target
238 * indices in the target text are not boundaries as
243 * text is 0 then an U_ILLEGAL_ARGUMENT_ERROR is returned.
246 StringSearch(const UnicodeString &pattern, CharacterIterator &text,
253 * behavior, and iterating over the same text.
283 * and iterate over the same text, as the one passed in.
293 * breakiterators, collators and iterate over the same text
305 * This method takes the argument index and sets the position in the text
308 * @param position within the text to be set. If position is less
309 * than or greater than the text range for searching,
317 * Return the current index in the text being searched.
318 * If the iteration has gone past the end of the text
321 * @return current index in the text being searched.
327 * Set the target text to be searched.
328 * Text iteration will hence begin at the start of the text string.
331 * pattern within a different body of text.
332 * @param text text string to be searched
333 * @param status for errors if any. If the text length is 0 then an
337 virtual void setText(const UnicodeString &text, UErrorCode &status);
340 * Set the target text to be searched.
341 * Text iteration will hence begin at the start of the text string.
344 * pattern within a different body of text.
345 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
346 * will be done during searching for this version. The block of text
348 * @param text text string to be searched
349 * @param status for errors if any. If the text length is 0 then an
353 virtual void setText(CharacterIterator &text, UErrorCode &status);
397 * Search will begin at the start of the text string if a forward
400 * search will begin at the end of the text string.
407 * iterating over the same text, as this one. Note that all data will be
434 * Search forward for matching text, starting at a given location.
440 * of characters in the target text that make up the match. If no match
448 * @param position The index in the target text at which the search
451 * @return The index at which the matched text in the target starts, or
458 * Search backward for matching text, starting at a given location.
464 * of characters in the target text that make up the match. If no match
472 * @param position The index in the target text at which the search
475 * @return The index at which the matched text in the target starts, or
487 * Pattern text