Skip to content

Commit d973ccb

Browse files
committed
Use DEFAULT values for enums
1 parent 722d30c commit d973ccb

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

icu4c/source/i18n/unicode/messageformat2.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ namespace message2 {
249249
* @internal ICU 78 technology preview
250250
* @deprecated This API is for technology preview only.
251251
*/
252-
U_MF_BIDI_CONTEXT_AUTO
252+
U_MF_BIDI_CONTEXT_AUTO,
253+
U_MF_BIDI_CONTEXT_DEFAULT = U_MF_BIDI_CONTEXT_AUTO
253254
} UMFBidiContext;
254255
/**
255256
* The mutable Builder class allows each part of the MessageFormatter to be initialized
@@ -282,12 +283,12 @@ namespace message2 {
282283
bool signalErrors = false;
283284
// Bidi isolation strategy
284285
MessageFormatter::UMFBidiIsolationStrategy
285-
bidiIsolationStrategy = U_MF_BIDI_AUTO;
286+
bidiIsolationStrategy = U_MF_BIDI_DEFAULT;
286287
// Message directionality
287-
MessageFormatter::UMFBidiContext msgdir = U_MF_BIDI_CONTEXT_AUTO;
288+
MessageFormatter::UMFBidiContext msgdir = U_MF_BIDI_CONTEXT_DEFAULT;
288289
// Bidi isolation style
289290
MessageFormatter::UMFBidiIsolationStyle
290-
bidiStyle = U_MF_BIDI_STYLE_CONTROL;
291+
bidiStyle = U_MF_BIDI_STYLE_DEFAULT;
291292

292293
void clearState();
293294
public:
@@ -586,14 +587,14 @@ namespace message2 {
586587
bool signalErrors = false;
587588

588589
// Bidi isolation strategy.
589-
UMFBidiIsolationStrategy bidiIsolationStrategy = U_MF_BIDI_AUTO;
590+
UMFBidiIsolationStrategy bidiIsolationStrategy = U_MF_BIDI_DEFAULT;
590591

591592
// Message directionality
592593
// Inferred from locale by default
593-
UMFDirectionality msgdir = U_MF_DIRECTIONALITY_UNKNOWN;
594+
UMFDirectionality msgdir = U_MF_DIRECTIONALITY_DEFAULT;
594595

595596
// Bidi isolation style
596-
UMFBidiIsolationStyle bidiIsolationStyle = U_MF_BIDI_STYLE_CONTROL;
597+
UMFBidiIsolationStyle bidiIsolationStyle = U_MF_BIDI_STYLE_DEFAULT;
597598

598599
}; // class MessageFormatter
599600

icu4c/source/i18n/unicode/messageformat2_function_registry.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ namespace message2 {
6161
* @internal ICU 78 technology preview
6262
* @deprecated This API is for technology preview only.
6363
*/
64-
U_MF_DIRECTIONALITY_UNKNOWN
64+
U_MF_DIRECTIONALITY_UNKNOWN,
65+
U_MF_DIRECTIONALITY_DEFAULT = U_MF_DIRECTIONALITY_UNKNOWN
6566
} UMFDirectionality;
6667

6768
/**

0 commit comments

Comments
 (0)