Skip to content

Commit 2e4f999

Browse files
committed
ICU-23136 U_I18N_API_CLASS to exclude Locale fields
1 parent 9489064 commit 2e4f999

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

icu4c/source/i18n/collationtailoring.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ class UnicodeSet;
4949
*
5050
* U_I18N_API because genuca & genrb use it.
5151
*/
52-
struct U_I18N_API CollationTailoring : public SharedObject {
53-
CollationTailoring(const CollationSettings *baseSettings);
54-
virtual ~CollationTailoring();
52+
struct U_I18N_API_CLASS CollationTailoring : public SharedObject {
53+
U_I18N_API CollationTailoring(const CollationSettings *baseSettings);
54+
U_I18N_API virtual ~CollationTailoring();
5555

5656
/**
5757
* Returns true if the constructor could not initialize properly.
5858
*/
59-
UBool isBogus() { return settings == nullptr; }
59+
U_I18N_API UBool isBogus() { return settings == nullptr; }
6060

61-
UBool ensureOwnedData(UErrorCode &errorCode);
61+
U_I18N_API UBool ensureOwnedData(UErrorCode &errorCode);
6262

63-
static void makeBaseVersion(const UVersionInfo ucaVersion, UVersionInfo version);
64-
void setVersion(const UVersionInfo baseVersion, const UVersionInfo rulesVersion);
65-
int32_t getUCAVersion() const;
63+
U_I18N_API static void makeBaseVersion(const UVersionInfo ucaVersion, UVersionInfo version);
64+
U_I18N_API void setVersion(const UVersionInfo baseVersion, const UVersionInfo rulesVersion);
65+
U_I18N_API int32_t getUCAVersion() const;
6666

6767
// data for sorting etc.
6868
const CollationData *data; // == base data or ownedData
@@ -97,14 +97,14 @@ struct U_I18N_API CollationTailoring : public SharedObject {
9797
};
9898

9999
// U_I18N_API because gencolusb uses it.
100-
struct U_I18N_API CollationCacheEntry : public SharedObject {
101-
CollationCacheEntry(const Locale &loc, const CollationTailoring *t)
100+
struct U_I18N_API_CLASS CollationCacheEntry : public SharedObject {
101+
U_I18N_API CollationCacheEntry(const Locale &loc, const CollationTailoring *t)
102102
: validLocale(loc), tailoring(t) {
103103
if(t != nullptr) {
104104
t->addRef();
105105
}
106106
}
107-
~CollationCacheEntry();
107+
U_I18N_API ~CollationCacheEntry();
108108

109109
Locale validLocale;
110110
const CollationTailoring *tailoring;

icu4c/source/i18n/unicode/numberformatter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ class U_I18N_API Padder : public UMemory {
15201520
// Do not enclose entire MacroProps with #ifndef U_HIDE_INTERNAL_API, needed for a protected field.
15211521
// U_I18N_API because intltest uses it.
15221522
/** @internal */
1523-
struct U_I18N_API MacroProps : public UMemory {
1523+
struct U_I18N_API_CLASS MacroProps : public UMemory {
15241524
/** @internal */
15251525
Notation notation;
15261526

@@ -1589,7 +1589,7 @@ struct U_I18N_API MacroProps : public UMemory {
15891589
* Check all members for errors.
15901590
* @internal
15911591
*/
1592-
bool copyErrorTo(UErrorCode &status) const {
1592+
U_I18N_API bool copyErrorTo(UErrorCode &status) const {
15931593
return notation.copyErrorTo(status) || precision.copyErrorTo(status) ||
15941594
padder.copyErrorTo(status) || integerWidth.copyErrorTo(status) ||
15951595
symbols.copyErrorTo(status) || scale.copyErrorTo(status) || usage.copyErrorTo(status) ||

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy