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

Add ways to substitute strtof/strtod/strtold with custom functions #329

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

rouault
Copy link
Contributor

@rouault rouault commented Mar 12, 2024

The standard strtof/strtod/strtold are by default locale-aware. There are a number of situations where we'd rather want to be able to use locale-independent parsing functions. This can be done by setting the ARGPARSE_CUSTOM_STRTOF/ARGPARSE_CUSTOM_STRTOD/ARGPARSE_CUSTOM_STRTOLD macros to the appropriate value.

The standard strtof/strtod/strtold are by default locale-aware. There
are a number of situations where we'd rather want to be able to use
locale-independent parsing functions. This can be done by setting the
ARGPARSE_CUSTOM_STRTOF/ARGPARSE_CUSTOM_STRTOD/ARGPARSE_CUSTOM_STRTOLD
macros to the appropriate value.
@p-ranav p-ranav merged commit c69d8e1 into p-ranav:master Mar 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants