| 184 | } |
| 185 | |
| 186 | void ftoa(float value, char *buffer, int precision) { |
| 187 | // Forward to printf_detail for now - implementation in str.cpp will be updated |
| 188 | // to use this function instead of duplicating the logic |
| 189 | fl::string result = fl::printf_detail::format_float(value, precision); |
| 190 | fl::size len = result.length(); |
| 191 | if (len > 63) len = 63; // Leave room for null terminator |
| 192 | for (fl::size i = 0; i < len; ++i) { |
| 193 | buffer[i] = result[i]; |
| 194 | } |
| 195 | buffer[len] = '\0'; |
| 196 | } |
| 197 | |
| 198 | // Parse functions - moved from StringFormatter |
| 199 | float parseFloat(const char *str, fl::size len) { |
no test coverage detected