Lines Matching refs:UCharIterator
36 /* No-Op UCharIterator implementation for illegal input --------------------- */
39 noopGetIndex(UCharIterator * /*iter*/, UCharIteratorOrigin /*origin*/) {
44 noopMove(UCharIterator * /*iter*/, int32_t /*delta*/, UCharIteratorOrigin /*origin*/) {
49 noopHasNext(UCharIterator * /*iter*/) {
54 noopCurrent(UCharIterator * /*iter*/) {
59 noopGetState(const UCharIterator * /*iter*/) {
64 noopSetState(UCharIterator * /*iter*/, uint32_t /*state*/, UErrorCode *pErrorCode) {
68 static const UCharIterator noopIterator={
82 /* UCharIterator implementation for simple strings -------------------------- */
88 * The UCharIterator.context field holds a pointer to the string.
92 stringIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) {
112 stringIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin) {
145 stringIteratorHasNext(UCharIterator *iter) {
150 stringIteratorHasPrevious(UCharIterator *iter) {
155 stringIteratorCurrent(UCharIterator *iter) {
164 stringIteratorNext(UCharIterator *iter) {
173 stringIteratorPrevious(UCharIterator *iter) {
182 stringIteratorGetState(const UCharIterator *iter) {
187 stringIteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode) {
199 static const UCharIterator stringIterator={
214 uiter_setString(UCharIterator *iter, const UChar *s, int32_t length) {
231 /* UCharIterator implementation for UTF-16BE strings ------------------------ */
238 * The UCharIterator.context field holds a pointer to the string.
245 utf16BEIteratorGet(UCharIterator *iter, int32_t index) {
251 utf16BEIteratorCurrent(UCharIterator *iter) {
262 utf16BEIteratorNext(UCharIterator *iter) {
274 utf16BEIteratorPrevious(UCharIterator *iter) {
285 static const UCharIterator utf16BEIterator={
325 uiter_setUTF16BE(UCharIterator *iter, const char *s, int32_t length) {
352 /* UCharIterator wrapper around CharacterIterator --------------------------- */
356 * look like a C UCharIterator.
358 * The UCharIterator.context field holds a pointer to the CharacterIterator.
362 characterIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) {
382 characterIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin) {
402 characterIteratorHasNext(UCharIterator *iter) {
407 characterIteratorHasPrevious(UCharIterator *iter) {
412 characterIteratorCurrent(UCharIterator *iter) {
424 characterIteratorNext(UCharIterator *iter) {
433 characterIteratorPrevious(UCharIterator *iter) {
442 characterIteratorGetState(const UCharIterator *iter) {
447 characterIteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode) {
459 static const UCharIterator characterIteratorWrapper={
474 uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIter) {
485 /* UCharIterator wrapper around Replaceable --------------------------------- */
491 * The UCharIterator.context field holds a pointer to the Replaceable.
492 * UCharIterator.length and UCharIterator.index hold Replaceable.length()
497 replaceableIteratorCurrent(UCharIterator *iter) {
506 replaceableIteratorNext(UCharIterator *iter) {
515 replaceableIteratorPrevious(UCharIterator *iter) {
523 static const UCharIterator replaceableIterator={
538 uiter_setReplaceable(UCharIterator *iter, const Replaceable *rep) {
550 /* UCharIterator implementation for UTF-8 strings --------------------------- */
567 * Use UCharIterator fields as follows:
575 * Since UCharIterator delivers 16-bit code units, the iteration can be
589 utf8IteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) {
669 utf8IteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin) {
842 utf8IteratorHasNext(UCharIterator *iter) {
847 utf8IteratorHasPrevious(UCharIterator *iter) {
852 utf8IteratorCurrent(UCharIterator *iter) {
872 utf8IteratorNext(UCharIterator *iter) {
907 utf8IteratorPrevious(UCharIterator *iter) {
941 utf8IteratorGetState(const UCharIterator *iter) {
950 utf8IteratorSetState(UCharIterator *iter,
989 static const UCharIterator utf8Iterator={
1004 uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length) {
1024 uiter_current32(UCharIterator *iter) {
1055 uiter_next32(UCharIterator *iter) {
1071 uiter_previous32(UCharIterator *iter) {
1087 uiter_getState(const UCharIterator *iter) {
1096 uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode) {