Skip to content

Commit

Permalink
Explain DIGIT_ZERO (etc.) macro naming
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Sep 9, 2024
1 parent c970f4f commit 5531140
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions icu4c/source/i18n/messageformat2_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ using namespace pluralimpl;
#define LOWERCASE_E ((UChar32)0x0065)
#define UPPERCASE_E ((UChar32)0x0045)

// The first three macro names are prefixed with DIGIT_
// in order to avoid substituting the macros into the
// definition of StandardPlural::Form (see standardplural.h)
#define DIGIT_ZERO ((UChar32)0x0030)
#define DIGIT_ONE ((UChar32)0x0031)
#define DIGIT_TWO ((UChar32)0x0032)
Expand Down

0 comments on commit 5531140

Please sign in to comment.