parse_double.h 379 B

123456789101112131415161718
  1. #pragma once
  2. #include <util/generic/strbuf.h>
  3. namespace NYql {
  4. /*
  5. These parse functions can understand nan, inf, -inf case-insensitively
  6. They do not parse empty string to zero
  7. */
  8. float FloatFromString(TStringBuf buf);
  9. double DoubleFromString(TStringBuf buf);
  10. bool TryFloatFromString(TStringBuf buf, float& value);
  11. bool TryDoubleFromString(TStringBuf buf, double& value);
  12. }