Files
filament/libs/utils/include/utils
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
..
2021-08-06 13:56:58 -07:00
2019-08-27 18:03:45 -07:00
2021-09-24 11:33:14 -07:00
2021-10-07 20:58:34 -07:00
2021-11-12 09:52:58 -08:00
2021-03-15 22:45:31 -07:00
2021-02-17 10:11:22 -08:00