]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/number_affixutils.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / i18n / number_affixutils.h
index 1d7e1a115e046a036aede4e810de2391185eebcd..5cfde61ffd0ca2c1591fb9e1252439705d95fc8b 100644 (file)
@@ -11,7 +11,7 @@
 #include "number_types.h"
 #include "unicode/stringpiece.h"
 #include "unicode/unistr.h"
-#include "number_stringbuilder.h"
+#include "formatted_string_builder.h"
 #include "unicode/uniset.h"
 
 U_NAMESPACE_BEGIN namespace number {
@@ -134,17 +134,18 @@ class U_I18N_API AffixUtils {
     /**
      * Executes the unescape state machine. Replaces the unquoted characters "-", "+", "%", "‰", and
      * "¤" with the corresponding symbols provided by the {@link SymbolProvider}, and inserts the
-     * result into the NumberStringBuilder at the requested location.
+     * result into the FormattedStringBuilder at the requested location.
      *
      * <p>Example input: "'-'¤x"; example output: "-$x"
      *
      * @param affixPattern The original string to be unescaped.
-     * @param output The NumberStringBuilder to mutate with the result.
-     * @param position The index into the NumberStringBuilder to insert the string.
+     * @param output The FormattedStringBuilder to mutate with the result.
+     * @param position The index into the FormattedStringBuilder to insert the string.
      * @param provider An object to generate locale symbols.
      */
-    static int32_t unescape(const UnicodeString& affixPattern, NumberStringBuilder& output,
-                            int32_t position, const SymbolProvider& provider, UErrorCode& status);
+    static int32_t unescape(const UnicodeString& affixPattern, FormattedStringBuilder& output,
+                            int32_t position, const SymbolProvider& provider, Field field,
+                            UErrorCode& status);
 
     /**
    * Sames as {@link #unescape}, but only calculates the code point count.  More efficient than {@link #unescape}