These changes implement fn:format-number as specified in qt4cg/qtspecs#340:
a fourth parameter format is added for supplying an explicit format,
language identifiers of available locales are used to predefine a decimal format for a language. This is accomplished by getting the symbols from either java.text.DecimalFormatSymbols, or com.ibm.icu.text.DecimalFormatSymbols.
Also the remaining 7 test failures from format-number.xml are fixed. It took two individual changes to do this:
grouping separators in the fractional part were ignored
the analysis for regular grouping was incomplete, in that i allowed digits making up more than one group at the beginning of the picture.
These changes implement
fn:format-number
as specified in qt4cg/qtspecs#340:format
is added for supplying an explicit format,java.text.DecimalFormatSymbols
, orcom.ibm.icu.text.DecimalFormatSymbols
.Also the remaining 7 test failures from format-number.xml are fixed. It took two individual changes to do this: