Skip to content

Commit 87fbe3a

Browse files
committed
Add U_I18N_CLASS / U_I18N macros to FunctionValue and FunctionContext
1 parent 3207230 commit 87fbe3a

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

icu4c/source/i18n/unicode/messageformat2_function_registry.h

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ namespace message2 {
309309
* @internal ICU 78 technology preview
310310
* @deprecated This API is for technology preview only.
311311
*/
312-
class U_I18N_API FunctionContext : public UObject {
312+
class U_I18N_API_CLASS FunctionContext : public UObject {
313313
public:
314314
/**
315315
* Returns the locale from this context.
@@ -319,7 +319,7 @@ namespace message2 {
319319
* @internal ICU 78 technology preview
320320
* @deprecated This API is for technology preview only.
321321
*/
322-
const Locale& getLocale() const { return locale; }
322+
U_I18N_API const Locale& getLocale() const { return locale; }
323323
/**
324324
* Returns the text direction from this context.
325325
*
@@ -328,7 +328,7 @@ namespace message2 {
328328
* @internal ICU 78 technology preview
329329
* @deprecated This API is for technology preview only.
330330
*/
331-
UMFBidiOption getDirection() const { return dir; }
331+
U_I18N_API UMFBidiOption getDirection() const { return dir; }
332332
/**
333333
* Returns the ID from this context.
334334
*
@@ -338,7 +338,7 @@ namespace message2 {
338338
* @internal ICU 78 technology preview
339339
* @deprecated This API is for technology preview only.
340340
*/
341-
const UnicodeString& getID() const { return id; }
341+
U_I18N_API const UnicodeString& getID() const { return id; }
342342
private:
343343
friend class MessageFormatter;
344344

@@ -403,7 +403,7 @@ namespace message2 {
403403
* @internal ICU 78 technology preview
404404
* @deprecated This API is for technology preview only.
405405
*/
406-
class U_I18N_API FunctionValue : public UObject {
406+
class U_I18N_API_CLASS FunctionValue : public UObject {
407407
public:
408408
/**
409409
* Returns the string representation of this value. The default
@@ -416,7 +416,7 @@ namespace message2 {
416416
* @internal ICU 78 technology preview
417417
* @deprecated This API is for technology preview only.
418418
*/
419-
virtual UnicodeString formatToString(UErrorCode& status) const {
419+
U_I18N_API virtual UnicodeString formatToString(UErrorCode& status) const {
420420
if (U_SUCCESS(status)) {
421421
status = U_MF_FORMATTING_ERROR;
422422
}
@@ -432,7 +432,7 @@ namespace message2 {
432432
* @internal ICU 78 technology preview
433433
* @deprecated This API is for technology preview only.
434434
*/
435-
virtual const Formattable& unwrap() const { return innerValue; }
435+
U_I18N_API virtual const Formattable& unwrap() const { return innerValue; }
436436
/**
437437
* Returns a reference to the resolved options for this value.
438438
*
@@ -441,7 +441,7 @@ namespace message2 {
441441
* @internal ICU 78 technology preview
442442
* @deprecated This API is for technology preview only.
443443
*/
444-
virtual const FunctionOptions& getResolvedOptions() const { return opts; }
444+
U_I18N_API virtual const FunctionOptions& getResolvedOptions() const { return opts; }
445445
/**
446446
* Returns the directionality of this value, i.e. the directionality
447447
* that its formatted result should have.
@@ -452,7 +452,7 @@ namespace message2 {
452452
* @internal ICU 78 technology preview
453453
* @deprecated This API is for technology preview only.
454454
*/
455-
virtual UMFDirectionality getDirection() const { return dir; }
455+
U_I18N_API virtual UMFDirectionality getDirection() const { return dir; }
456456
/**
457457
* Returns the directionality that this value was annotated with.
458458
*
@@ -467,7 +467,7 @@ namespace message2 {
467467
* @internal ICU 78 technology preview
468468
* @deprecated This API is for technology preview only.
469469
*/
470-
virtual UMFBidiOption getDirectionAnnotation() const { return inputDir; }
470+
U_I18N_API virtual UMFBidiOption getDirectionAnnotation() const { return inputDir; }
471471
/**
472472
* Returns true if this value supports selection. The default method
473473
* returns false. The method must be overridden for values that support
@@ -478,7 +478,7 @@ namespace message2 {
478478
* @internal ICU 78 technology preview
479479
* @deprecated This API is for technology preview only.
480480
*/
481-
virtual UBool isSelectable() const {
481+
U_I18N_API virtual UBool isSelectable() const {
482482
// In the future, this function could return a capability
483483
// indicating whether this function can format, select, or both.
484484
return false;
@@ -494,7 +494,7 @@ namespace message2 {
494494
* @internal ICU 78 technology preview
495495
* @deprecated This API is for technology preview only.
496496
*/
497-
virtual UBool isNullOperand() const { return false; }
497+
U_I18N_API virtual UBool isNullOperand() const { return false; }
498498
/**
499499
* Compares this value to an array of keys, and returns an array of matching
500500
* keys sorted by preference. The default implementation of this method
@@ -515,7 +515,7 @@ namespace message2 {
515515
* @internal ICU 78 technology preview
516516
* @deprecated This API is for technology preview only.
517517
*/
518-
virtual void selectKeys(const UnicodeString* keys,
518+
U_I18N_API virtual void selectKeys(const UnicodeString* keys,
519519
int32_t keysLen,
520520
int32_t* prefs,
521521
int32_t& prefsLen,
@@ -537,7 +537,7 @@ namespace message2 {
537537
* @internal ICU 78 technology preview
538538
* @deprecated This API is for technology preview only.
539539
*/
540-
virtual const UnicodeString& getFunctionName() const { return functionName; }
540+
U_I18N_API virtual const UnicodeString& getFunctionName() const { return functionName; }
541541
/**
542542
* Returns a fallback string that can be used as output
543543
* if processing this function results in an error.
@@ -547,14 +547,14 @@ namespace message2 {
547547
* @internal ICU 78 technology preview
548548
* @deprecated This API is for technology preview only.
549549
*/
550-
virtual const UnicodeString& getFallback() const { return fallback; }
550+
U_I18N_API virtual const UnicodeString& getFallback() const { return fallback; }
551551
/**
552552
* Destructor.
553553
*
554554
* @internal ICU 78 technology preview
555555
* @deprecated This API is for technology preview only.
556556
*/
557-
virtual ~FunctionValue();
557+
U_I18N_API virtual ~FunctionValue();
558558
protected:
559559
/**
560560
* Computed result of the function invocation that
@@ -564,37 +564,37 @@ namespace message2 {
564564
* @internal ICU 78 technology preview
565565
* @deprecated This API is for technology preview only.
566566
*/
567-
Formattable innerValue;
567+
U_I18N_API Formattable innerValue;
568568
/**
569569
* Resolved options attached to this value.
570570
*
571571
* @internal ICU 78 technology preview
572572
* @deprecated This API is for technology preview only.
573573
*/
574-
FunctionOptions opts;
574+
U_I18N_API FunctionOptions opts;
575575
/**
576576
* The name of the function that constructed this FunctionValue.
577577
*
578578
* @internal ICU 78 technology preview
579579
* @deprecated This API is for technology preview only.
580580
*/
581-
UnicodeString functionName;
581+
U_I18N_API UnicodeString functionName;
582582
/**
583583
* Fallback string that can be used if a later function encounters
584584
* an error when processing this FunctionValue.
585585
*
586586
* @internal ICU 78 technology preview
587587
* @deprecated This API is for technology preview only.
588588
*/
589-
UnicodeString fallback;
589+
U_I18N_API UnicodeString fallback;
590590
/**
591591
* Locale from u:locale option.
592592
* Must be set from function context.
593593
*
594594
* @internal ICU 78 technology preview
595595
* @deprecated This API is for technology preview only.
596596
*/
597-
Locale locale;
597+
U_I18N_API Locale locale;
598598
/**
599599
* Directionality of formatted result.
600600
* Defaults to U_MF_DIRECTIONALITY_UNKNOWN if not set
@@ -603,7 +603,7 @@ namespace message2 {
603603
* @internal ICU 78 technology preview
604604
* @deprecated This API is for technology preview only.
605605
*/
606-
UMFDirectionality dir = U_MF_DIRECTIONALITY_UNKNOWN;
606+
U_I18N_API UMFDirectionality dir = U_MF_DIRECTIONALITY_UNKNOWN;
607607
/**
608608
* Input directionality from u:dir option.
609609
* Defaults to U_MF_BIDI_OPTION_INHERIT if not set
@@ -612,7 +612,7 @@ namespace message2 {
612612
* @internal ICU 78 technology preview
613613
* @deprecated This API is for technology preview only.
614614
*/
615-
UMFBidiOption inputDir = U_MF_BIDI_OPTION_INHERIT;
615+
U_I18N_API UMFBidiOption inputDir = U_MF_BIDI_OPTION_INHERIT;
616616
private:
617617
friend class FunctionOptions;
618618

0 commit comments

Comments
 (0)