Files
mruby-mruby/src
dearblue 8c0d9ba1a3 Improve performance String#index with UTF-8
Based on Boyer-Moore-Horspool algorithm (Quick Search algorithm).

As a side effect, the correct position is returned even if an invalid UTF-8
string is given.

```console
% ./mruby@master -e 'p ("\xd1" * 100 + "#").index("#")'
50
% ./mruby@improve-index -e 'p ("\xd1" * 100 + "#").index("#")'
100
```

The other behavior should be the same as the current implementation.
2019-07-11 22:09:15 +09:00
..
2019-06-23 20:01:33 +09:00
2018-11-15 21:01:56 +09:00
2019-04-09 18:23:11 +09:00
2019-04-06 16:32:27 +09:00
2019-05-25 23:59:43 +09:00
2016-05-09 17:19:47 +02:00