BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
695 stars 264 forks source link

fn:format-number: add parameter for explicit format; use DecimalFormatSymbols to predefine formats for languages #2265

Closed GuntherRademacher closed 11 months ago

GuntherRademacher commented 11 months ago

These changes implement fn:format-number as specified in qt4cg/qtspecs#340:

Also the remaining 7 test failures from format-number.xml are fixed. It took two individual changes to do this:

ChristianGruen commented 11 months ago

Just merged (via a local branch).

The solution was fine! I’ve further unified the decimal-format handling by replacing the constant strings with the new DecimalFormatOptions class.