| 754 | |
| 755 | |
| 756 | double __hxcpp_parse_substr_float(const String &inString,int start, int length) |
| 757 | { |
| 758 | if (start>=inString.length || length<1 || (start+length)>inString.length ) |
| 759 | return Math_obj::NaN; |
| 760 | |
| 761 | hx::strbuf buf; |
| 762 | const char *str = inString.ascii_substr(&buf,start,length); |
| 763 | char *end = (char *)str; |
| 764 | double result = str ? strtod(str,&end) : 0; |
| 765 | |
| 766 | if (end==str) |
| 767 | return Math_obj::NaN; |
| 768 | |
| 769 | return result; |
| 770 | } |
| 771 | |
| 772 | |
| 773 | double __hxcpp_parse_float(const String &inString) |
nothing calls this directly
no test coverage detected