Helper to handle overflow failure (sets output parameters and returns empty string)
| 2675 | |
| 2676 | // Helper to handle overflow failure (sets output parameters and returns empty string) |
| 2677 | static inline const char* handle_overflow_failure(bool* out_valid, int32_t* out_len) { |
| 2678 | *out_len = 0; |
| 2679 | *out_valid = false; |
| 2680 | return ""; |
| 2681 | } |
| 2682 | |
| 2683 | // Helper to handle empty result (all words invalid) |
| 2684 | static inline const char* handle_empty_result(bool* out_valid, int32_t* out_len) { |