@@ -1966,7 +1966,7 @@ module StdString = struct
else if this.sascii then
vint (Rope.search_forward_string (Lazy.force str.sstring) this.srope i)
else begin
- vint ((fst (find_substring this str false i)) lsr 1)
+ vint ((fst (find_substring this str false (i lsl 1))) lsr 1)
end
with Not_found ->
vint (-1)
@@ -24,6 +24,8 @@ var s = "abc";
s.indexOf("éé")<0;
s.lastIndexOf("éé")<0;
+"012::345€".indexOf("::", 1) == 3;
+
var s = String.fromCharCode(0x1f602);
s == "😂";