ICU 62.1
62.1
i18n
unicode
unirepl.h
Go to the documentation of this file.
1
// © 2016 and later: Unicode, Inc. and others.
2
// License & terms of use: http://www.unicode.org/copyright.html
3
/*
4
**********************************************************************
5
* Copyright (c) 2002-2005, International Business Machines Corporation
6
* and others. All Rights Reserved.
7
**********************************************************************
8
* Date Name Description
9
* 01/14/2002 aliu Creation.
10
**********************************************************************
11
*/
12
#ifndef UNIREPL_H
13
#define UNIREPL_H
14
15
#include "
unicode/utypes.h
"
16
22
U_NAMESPACE_BEGIN
23
24
class
Replaceable;
25
class
UnicodeString;
26
class
UnicodeSet;
27
38
class
U_I18N_API
UnicodeReplacer
/* not : public UObject because this is an interface/mixin class */
{
39
40
public
:
41
46
virtual
~
UnicodeReplacer
();
47
66
virtual
int32_t replace(
Replaceable
& text,
67
int32_t start,
68
int32_t limit,
69
int32_t& cursor) = 0;
70
85
virtual
UnicodeString
& toReplacerPattern(
UnicodeString
& result,
86
UBool
escapeUnprintable)
const
= 0;
87
94
virtual
void
addReplacementSetTo(
UnicodeSet
& toUnionTo)
const
= 0;
95
};
96
97
U_NAMESPACE_END
98
99
#endif
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
icu::UnicodeSet
A mutable set of Unicode characters and multicharacter strings.
Definition:
uniset.h:278
U_I18N_API
#define U_I18N_API
Definition:
utypes.h:360
UBool
int8_t UBool
The ICU boolean type.
Definition:
umachine.h:236
icu::Replaceable
Replaceable is an abstract base class representing a string of characters that supports the replaceme...
Definition:
rep.h:73
icu::UnicodeString
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition:
unistr.h:286
icu::UnicodeReplacer
UnicodeReplacer defines a protocol for objects that replace a range of characters in a Replaceable st...
Definition:
unirepl.h:38
U_NAMESPACE_END
#define U_NAMESPACE_END
Definition:
uversion.h:138
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
Definition:
uversion.h:137
Generated by
1.8.17