Class CurrencySpacingEnabledModifier

    • Field Detail

      • UNISET_DIGIT

        private static final UnicodeSet UNISET_DIGIT
      • UNISET_NOTSZ

        private static final UnicodeSet UNISET_NOTSZ
      • afterPrefixUnicodeSet

        private final UnicodeSet afterPrefixUnicodeSet
      • afterPrefixInsert

        private final java.lang.String afterPrefixInsert
      • beforeSuffixUnicodeSet

        private final UnicodeSet beforeSuffixUnicodeSet
      • beforeSuffixInsert

        private final java.lang.String beforeSuffixInsert
    • Method Detail

      • apply

        public int apply​(FormattedStringBuilder output,
                         int leftIndex,
                         int rightIndex)
        Safe code path
        Specified by:
        apply in interface Modifier
        Overrides:
        apply in class ConstantMultiFieldModifier
        Parameters:
        output - The string builder to which to apply this modifier.
        leftIndex - The left index of the string within the builder. Equal to 0 when only one number is being formatted.
        rightIndex - The right index of the string within the string builder. Equal to length when only one number is being formatted.
        Returns:
        The number of characters (UTF-16 code units) that were added to the string builder.
      • applyCurrencySpacing

        public static int applyCurrencySpacing​(FormattedStringBuilder output,
                                               int prefixStart,
                                               int prefixLen,
                                               int suffixStart,
                                               int suffixLen,
                                               DecimalFormatSymbols symbols)
        Unsafe code path
      • getInsertString

        private static java.lang.String getInsertString​(DecimalFormatSymbols symbols,
                                                        byte affix)