FlaxEngine / FlaxEngine

Flax Engine – multi-platform 3D game engine
https://flaxengine.com
Other
5.58k stars 546 forks source link

C++ String Parsing Issues #2323

Open mtszkarbowiak opened 4 months ago

mtszkarbowiak commented 4 months ago

All described issues source at StringUtils.

  1. Parse<T, U>(const T*, U*) works only for unsigned integers.
  2. There is no direct culture control over float parsing.
  3. There is no overload/specialization for double.
  4. Parse(const Char*, float*) is an overload for Parse<T, U>(const T*, U*) instead of specialization which becomes cumbersome in a codebase with a lot of template metaprogramming.
mtszkarbowiak commented 4 months ago
  1. float requires null termination.