ICU 4.8.1.1
4.8.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
common
unicode
strenum.h
Go to the documentation of this file.
1
/*
2
*******************************************************************************
3
*
4
* Copyright (C) 2002-2007, International Business Machines
5
* Corporation and others. All Rights Reserved.
6
*
7
*******************************************************************************
8
*/
9
10
#ifndef STRENUM_H
11
#define STRENUM_H
12
13
#include "
unicode/uobject.h
"
14
#include "
unicode/unistr.h
"
15
21
U_NAMESPACE_BEGIN
22
55
class
U_COMMON_API
StringEnumeration
:
public
UObject
{
56
public
:
61
virtual
~
StringEnumeration
();
62
78
virtual
StringEnumeration
*clone()
const
;
79
97
virtual
int32_t count(
UErrorCode
& status)
const
= 0;
98
128
virtual
const
char
* next(int32_t *resultLength,
UErrorCode
& status);
129
153
virtual
const
UChar
* unext(int32_t *resultLength,
UErrorCode
& status);
154
171
virtual
const
UnicodeString
* snext(
UErrorCode
& status) = 0;
172
185
virtual
void
reset(
UErrorCode
& status) = 0;
186
194
virtual
UBool
operator==
(
const
StringEnumeration
& that)
const
;
202
virtual
UBool
operator!=
(
const
StringEnumeration
& that)
const
;
203
204
protected
:
209
UnicodeString
unistr
;
214
char
charsBuffer[32];
220
char
*
chars
;
225
int32_t
charsCapacity
;
226
231
StringEnumeration
();
232
241
void
ensureCharsCapacity(int32_t capacity,
UErrorCode
&status);
242
265
UnicodeString
*setChars(
const
char
*s, int32_t length,
UErrorCode
&status);
266
};
267
268
U_NAMESPACE_END
269
270
/* STRENUM_H */
271
#endif
Generated on Thu Oct 10 2013 17:22:12 for ICU 4.8.1.1 by
1.8.3.1