| 771 | |
| 772 | |
| 773 | double __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 | |
| 790 | bool __hxcpp_same_closure(Dynamic &inF1,Dynamic &inF2) |