p-ranav / argparse

Argument Parser for Modern C++
MIT License
2.59k stars 244 forks source link

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

Closed rouault closed 5 months ago

rouault commented 5 months ago

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.