MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_parse_float

Function __hxcpp_parse_float

src/hx/StdLibs.cpp:773–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771
772
773double __hxcpp_parse_float(const String &inString)
774{
775 if (!inString.raw_ptr())
776 return Math_obj::NaN;
777
778 hx::strbuf buf;
779 const char *str = inString.utf8_str(&buf);
780 char *end = (char *)str;
781 double result = str ? strtod(str,&end) : 0;
782
783 if (end==str)
784 return Math_obj::NaN;
785
786 return result;
787}
788
789
790bool __hxcpp_same_closure(Dynamic &inF1,Dynamic &inF2)

Callers 1

ToDoubleFunction · 0.85

Calls 1

utf8_strMethod · 0.80

Tested by

no test coverage detected