Bob Nystrom
59a6fc1bcc
feat: add negative start support and validate index in String.indexOf(_,_)
...
Simplify arithmetic in wrenStringFind by removing startIndex offset from loop range and using start directly as the initial index. Rename internal primitives to string_indexOf1 and string_indexOf2 for clarity. Add validateIndex helper to clamp negative start values and reject out-of-bounds indices. Update documentation to describe the new start parameter behavior. Add comprehensive test suite for indexOf with start, including negative offsets, edge cases, and error conditions.
2016-08-04 05:19:34 +00:00
..
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2016-08-04 05:19:34 +00:00
2016-08-04 05:19:34 +00:00
2016-08-04 05:19:34 +00:00
2016-08-04 05:19:34 +00:00
2016-08-04 05:19:34 +00:00
2016-08-04 05:19:34 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2016-02-24 15:48:03 +00:00
2016-02-24 15:48:03 +00:00
2016-02-24 15:48:03 +00:00
2016-02-24 15:48:03 +00:00
2015-09-01 15:16:04 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-09-02 05:14:55 +00:00
2015-09-02 05:14:55 +00:00
2015-09-02 05:14:55 +00:00
2015-09-02 05:14:55 +00:00
2015-09-02 05:14:55 +00:00
2015-09-02 05:14:55 +00:00
2015-09-02 05:14:55 +00:00
2015-09-02 05:14:55 +00:00
2015-12-06 18:37:58 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00