// 11. If fullUnicode is true, let input be StringToCodePoints(S). Otherwise, let input be a List whose elements are the code units that are the elements of S.
// NOTE: The following steps are take care of by regress:
// 12. NOTE: Each element of input is considered to be a character.
//
// SKIP: 10. Let matchSucceeded be false.
// SKIP: 11. If fullUnicode is true, let input be StringToCodePoints(S). Otherwise, let input be a List whose elements are the code units that are the elements of S.
// SKIP: 12. NOTE: Each element of input is considered to be a character.
// SKIP: 13. Repeat, while matchSucceeded is false,
// 10. Let matchSucceeded be false.
// 13.a. If lastIndex > length, then
// 13. Repeat, while matchSucceeded is false,
letmatch_value=loop{
// a. If lastIndex > length, then
iflast_index>length{
iflast_index>length{
// i. If global is true or sticky is true, then
// i. If global is true or sticky is true, then
ifglobal||sticky{
ifglobal||sticky{
@ -958,36 +959,40 @@ impl RegExp {
returnOk(None);
returnOk(None);
}
}
// b. Let inputIndex be the index into input of the character that was obtained from element lastIndex of S.
// 13.b. Let inputIndex be the index into input of the character that was obtained from element lastIndex of S.