feat: String_ToFloat + Json escape sequence support

- Add bux_str_to_float() C runtime wrapper (strtod)
- Add String_ToFloat() in library/std/String.bux
- Update JsonParser_ParseNumber to use String_ToFloat (decimals now work)
- Update JsonParser_ParseString to decode escape sequences (\n, \t, \r, \", \\, \b, \f)
- Fix use-after-free in JsonParser_ParseString: String_Copy before StringBuilder_Free
This commit is contained in:
2026-06-05 22:35:50 +03:00
parent d0de9c2abf
commit 154579b30d
4 changed files with 36 additions and 6 deletions
+1
View File
@@ -141,6 +141,7 @@ String manipulation utilities.
| `String_FromInt` | `func String_FromInt(n: int64) -> String` | Int to string |
| `String_FromFloat` | `func String_FromFloat(f: float64) -> String` | Float to string |
| `String_ToInt` | `func String_ToInt(s: String) -> int64` | String to int |
| `String_ToFloat` | `func String_ToFloat(s: String) -> float64` | String to float |
### Find, Replace & Format