Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency ch.randelshofer:fastdoubleparser to v2 #482

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 16, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ch.randelshofer:fastdoubleparser 1.0.90 -> 2.0.1 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

wrandelshofer/FastDoubleParser (ch.randelshofer:fastdoubleparser)

v2.0.1: Release 2.0.1 with fixes for ConfigurableDoubleParser

Compare Source

This release fixes the following issues with ConfigurableDoubleParser:

  • ConfigurableDoubleParser could not parse a number if both the exponent separator and infinity or NaN started with the same character.

  • ConfigurableDoubleParser could not parse a number if one of the NumberFormatSymbols was a Unicode 'format character'.

v2.0.0: Release 2.0.0 with ConfigurableDoubleParser

Compare Source

The Release 2.0.0 adds a ConfigurableDoubleParser to the library.

The ConfigurableDoubleParser supports parsing of double numbers in localed formats, similar to java.text.DecimalFormat.

Examples:

        var symbols = NumberFormatSymbols.fromDecimalFormatSymbols(new DecimalFormatSymbols(Locale.GERMAN));
        boolean ignoreCase = true;
        var confdParser = new ConfigurableDoubleParser(symbols, ignoreCase);
        double confD1 = confdParser.parseDouble("123.456,89e5");
        double confD2 = confdParser.parseDouble("-0.15425,89E-5");
        System.out.println("Double value in German Locale: " + confD1);
        System.out.println("Another double value in German Locale: " + confD2);

        symbols = NumberFormatSymbols.fromDecimalFormatSymbols(new DecimalFormatSymbols(Locale.forLanguageTag("zh-CN")));
        symbols = symbols
                .withDigits(List.of('〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'))
                .withExponentSeparator((Set.of("*一〇^")));

        confdParser = new ConfigurableDoubleParser(symbols, ignoreCase);
        double confZh = confdParser.parseDouble("四一.五七五三七一六六二一四五九八*一〇^七");
        System.out.println("Double value in Chinese Locale: " + confZh);

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Nov 16, 2024
@renovate renovate bot force-pushed the renovate/ch.randelshofer-fastdoubleparser-2.x branch 3 times, most recently from 827a2f5 to 26340a7 Compare November 21, 2024 02:32
@renovate renovate bot force-pushed the renovate/ch.randelshofer-fastdoubleparser-2.x branch from 26340a7 to 4879c18 Compare November 21, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants