Files
filament/libs/utils/test
Romain Guy 8875806c5d Use locale-independent string->float conversion (#4885)
* Use locale-independent string->float conversion

strtof and friends are locale aware and won't parse decimal numbers
with a period ("12.6" for instance) in locales that use another
character for the decimal period ("," in French for instance).

This change introduces a new function called strtof_c that forces
the use of a specific locale (called "C") to make sure we always
parse floats in the desired "C" format ("12.6").

With C++17 we should be able to use std::from_chars but this API
is not implemented in clang for floats at the moment.

* Fix Linux
2021-11-23 12:32:54 -08:00
..
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2020-02-12 10:03:06 -08:00
2021-04-06 15:04:10 -07:00
2018-08-03 10:38:22 -07:00