ICU 56.1  56.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uiter.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 2002-2011 International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 * file name: uiter.h
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2002jan18
14 * created by: Markus W. Scherer
15 */
16 
17 #ifndef __UITER_H__
18 #define __UITER_H__
19 
27 #include "unicode/utypes.h"
28 
29 #if U_SHOW_CPLUSPLUS_API
31 
32  class CharacterIterator;
33  class Replaceable;
34 
36 #endif
37 
39 
40 struct UCharIterator;
41 typedef struct UCharIterator UCharIterator;
49 typedef enum UCharIteratorOrigin {
50  UITER_START, UITER_CURRENT, UITER_LIMIT, UITER_ZERO, UITER_LENGTH
52 
54 enum {
70 };
71 
72 
84 #define UITER_NO_STATE ((uint32_t)0xffffffff)
85 
104 typedef int32_t U_CALLCONV
106 
141 typedef int32_t U_CALLCONV
143 
156 typedef UBool U_CALLCONV
158 
170 typedef UBool U_CALLCONV
172 
185 typedef UChar32 U_CALLCONV
187 
201 typedef UChar32 U_CALLCONV
203 
217 typedef UChar32 U_CALLCONV
219 
231 typedef int32_t U_CALLCONV
232 UCharIteratorReserved(UCharIterator *iter, int32_t something);
233 
278 typedef uint32_t U_CALLCONV
280 
306 typedef void U_CALLCONV
307 UCharIteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode);
308 
309 
345  const void *context;
346 
352  int32_t length;
353 
359  int32_t start;
360 
366  int32_t index;
367 
373  int32_t limit;
374 
379  int32_t reservedField;
380 
389 
400 
409 
417 
426 
436 
446 
454 
463 
473 };
474 
493 U_STABLE UChar32 U_EXPORT2
495 
510 U_STABLE UChar32 U_EXPORT2
512 
527 U_STABLE UChar32 U_EXPORT2
529 
548 U_STABLE uint32_t U_EXPORT2
549 uiter_getState(const UCharIterator *iter);
550 
566 U_STABLE void U_EXPORT2
567 uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode);
568 
591 U_STABLE void U_EXPORT2
592 uiter_setString(UCharIterator *iter, const UChar *s, int32_t length);
593 
614 U_STABLE void U_EXPORT2
615 uiter_setUTF16BE(UCharIterator *iter, const char *s, int32_t length);
616 
650 U_STABLE void U_EXPORT2
651 uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length);
652 
653 #if U_SHOW_CPLUSPLUS_API
654 
675 U_STABLE void U_EXPORT2
677 
700 U_STABLE void U_EXPORT2
702 
703 #endif
704 
706 
707 #endif