• xurime's avatar
    Ref #1199, this support applies partial built-in language number format code · 49234fb9
    xurime 提交于
    - Remove the `Lang` field in the `Style` data type
    - Rename field name `ShortDateFmtCode` to `ShortDatePattern` in the `Options` data type
    - Rename field name `LongDateFmtCode` to `LongDatePattern` in the `Options` data type
    - Rename field name `LongTimeFmtCode` to `LongTimePattern` in the `Options` data type
    - Apply built-in language number format code number when creating a new style
    - Checking and returning error if the date and time pattern was invalid
    - Add new `Options` field `CultureInfo` and new exported data type `CultureName`
    - Add new culture name types enumeration for country code
    - Update unit tests
    - Move built-in number format code and currency number format code definition source code
    - Remove the built-in language number format code mapping with Unicode values
    - Fix incorrect number formatted result for date and time with 12 hours at AM
    49234fb9
styles_test.go 16.1 KB