We're updating the issue view to help you get more done. 

formatMeasures() should take const Measure **, not const Measure *

Description

I'd like to propose that ICU add an overload for

1 MeasureFormat.formatMeasures()

that takes an array of const Measure * instead of Measure[].

It is currently hard to create a Measure[] via 'new' since the Measure()
constructor is protected. It is also difficult to copy existing Measure
objects (I suspect there is something odd with the unit * it owns).

Seeing that there are subclasses of Measure makes it a bit scary to copy
these instances into a Measure[] anyway...

In PyICU, the wrapper objects own a Measure *, a formatMeasures() method
accepting an array for const Measure * would be much simpler to write a
wrapper for.

As it stands, in PyICU's HEAD version, I added formatMeasure(Measure) and
formatMeasures(array of 1) only.

Status

Assignee

Shane Carr

Reporter

TracBot

Labels

None

Reviewer

None

Time Needed

None

Start date

None

Components

Priority

assess