Lines Matching refs:UCharIterator

24  * @see UCharIterator
40 struct UCharIterator;
41 typedef struct UCharIterator UCharIterator; /**< C typedef for struct UCharIterator. @stable ICU 2.1 */
44 * Origin constants for UCharIterator.getIndex() and UCharIterator.move().
46 * @see UCharIterator
53 /** Constants for UCharIterator. @stable ICU 2.6 */
74 * Constant for UCharIterator getState() indicating an error or
78 * Also, some UCharIterator implementations may not be able to return
87 * Function type declaration for UCharIterator.getIndex().
96 * @param iter the UCharIterator structure ("this pointer")
101 * @see UCharIterator
105 UCharIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin);
108 * Function type declaration for UCharIterator.move().
130 * @param iter the UCharIterator structure ("this pointer")
137 * @see UCharIterator
142 UCharIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin);
145 * Function type declaration for UCharIterator.hasNext().
150 * @param iter the UCharIterator structure ("this pointer")
153 * @see UCharIterator
157 UCharIteratorHasNext(UCharIterator *iter);
160 * Function type declaration for UCharIterator.hasPrevious().
164 * @param iter the UCharIterator structure ("this pointer")
167 * @see UCharIterator
171 UCharIteratorHasPrevious(UCharIterator *iter);
174 * Function type declaration for UCharIterator.current().
179 * @param iter the UCharIterator structure ("this pointer")
182 * @see UCharIterator
186 UCharIteratorCurrent(UCharIterator *iter);
189 * Function type declaration for UCharIterator.next().
195 * @param iter the UCharIterator structure ("this pointer")
198 * @see UCharIterator
202 UCharIteratorNext(UCharIterator *iter);
205 * Function type declaration for UCharIterator.previous().
211 * @param iter the UCharIterator structure ("this pointer")
214 * @see UCharIterator
218 UCharIteratorPrevious(UCharIterator *iter);
221 * Function type declaration for UCharIterator.reservedFn().
224 * @param iter the UCharIterator structure ("this pointer")
228 * @see UCharIterator
232 UCharIteratorReserved(UCharIterator *iter, int32_t something);
235 * Function type declaration for UCharIterator.getState().
250 * With some UCharIterator implementations (e.g., UTF-8),
266 * Some UCharIterator implementations may not be able to return
270 * @param iter the UCharIterator structure ("this pointer")
273 * @see UCharIterator
279 UCharIteratorGetState(const UCharIterator *iter);
282 * Function type declaration for UCharIterator.setState().
296 * @param iter the UCharIterator structure ("this pointer")
302 * @see UCharIterator
307 UCharIteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode);
315 * There are two roles for using UCharIterator:
318 * fields of the UCharIterator structure. A "provider" passes a UCharIterator
319 * into C APIs that need a UCharIterator as an abstract, flexible string interface.
321 * Implementations of such C APIs are "callers" of UCharIterator functions;
334 * UCharIterator functions return code unit values 0..0xffff,
339 struct UCharIterator {
476 * Helper function for UCharIterator to get the code point
485 * @param iter the UCharIterator structure ("this pointer")
488 * @see UCharIterator
494 uiter_current32(UCharIterator *iter);
497 * Helper function for UCharIterator to get the next code point.
503 * @param iter the UCharIterator structure ("this pointer")
506 * @see UCharIterator
511 uiter_next32(UCharIterator *iter);
514 * Helper function for UCharIterator to get the previous code point.
520 * @param iter the UCharIterator structure ("this pointer")
523 * @see UCharIterator
528 uiter_previous32(UCharIterator *iter);
536 * Some UCharIterator implementations may not be able to return
540 * @param iter the UCharIterator structure ("this pointer")
543 * @see UCharIterator
549 uiter_getState(const UCharIterator *iter);
556 * @param iter the UCharIterator structure ("this pointer")
562 * @see UCharIterator
567 uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode);
570 * Set up a UCharIterator to iterate over a string.
572 * Sets the UCharIterator function pointers for iteration over the string s
578 * The string pointer s is set into UCharIterator.context without copying
584 * @param iter UCharIterator structure to be set for iteration
588 * @see UCharIterator
592 uiter_setString(UCharIterator *iter, const UChar *s, int32_t length);
595 * Set up a UCharIterator to iterate over a UTF-16BE string
605 * @param iter UCharIterator structure to be set for iteration
610 * @see UCharIterator
615 uiter_setUTF16BE(UCharIterator *iter, const char *s, int32_t length);
618 * Set up a UCharIterator to iterate over a UTF-8 string.
620 * Sets the UCharIterator function pointers for iteration over the UTF-8 string s
630 * The UTF-8 string pointer s is set into UCharIterator.context without copying
643 * @param iter UCharIterator structure to be set for iteration
647 * @see UCharIterator
651 uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length);
656 * Set up a UCharIterator to wrap around a C++ CharacterIterator.
658 * Sets the UCharIterator function pointers for iteration using the
661 * The CharacterIterator pointer charIter is set into UCharIterator.context
663 * The other "protected" UCharIterator fields are set to 0 and will be ignored.
669 * @param iter UCharIterator structure to be set for iteration
672 * @see UCharIterator
676 uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIter);
679 * Set up a UCharIterator to iterate over a C++ Replaceable.
681 * Sets the UCharIterator function pointers for iteration over the
688 * The Replaceable pointer rep is set into UCharIterator.context without copying
694 * @param iter UCharIterator structure to be set for iteration
697 * @see UCharIterator
701 uiter_setReplaceable(UCharIterator *iter, const Replaceable *rep);