getArgTypeList should have same behavior with named/numbered argument pattern.

Description

Deleted Component: formatting

The variables fmt_count and fmt_count2 should have the same value,but actually it is not.

Activity

Show:
TracBot
June 30, 2018, 11:35 PM
Trac Comment 3 by anonymous—2010-12-16T11:28:18.045Z

Could we increase this priority?

TracBot
June 30, 2018, 11:35 PM
Trac Comment 4 by —2011-04-08T19:22:55.161Z

What values do you get, and why do you need to use a private, internal method? Will the ICU 4.8 MessagePattern class provide via public API what you need?

TracBot
June 30, 2018, 11:35 PM
Trac Comment 5 by —2011-04-22T21:19:26.205Z

The request cannot be fulfilled with getArgTypeList() because it returns an array of Formattable::Type which is indexed by the argument number. It cannot be used with argument names.

This internal method only exists in support of the umsg_xxx() C API wrapper. If and when we add support there for patterns with named arguments, we will either need new internal functions to get a list or map of argument names and their types, or else we might introduce a C version of Formattable for cleaner, safer usage (at the cost of more clunky call sites).

Invalid

Assignee

Markus Scherer

Reporter

TracBot

Components

None

Labels

None

Reviewer

None

Priority

minor

Time Needed

Hours

Fix versions