Lines Matching refs:start_pos
47868 duk_int_t start_pos, end_pos; local
47877 start_pos = duk_to_int_clamped(thr, 0, 0, len);
47883 DUK_ASSERT(start_pos >= 0 && start_pos <= len);
47886 if (start_pos > end_pos) {
47887 duk_int_t tmp = start_pos;
47888 start_pos = end_pos;
47892 DUK_ASSERT(end_pos >= start_pos);
47894 duk_substring(thr, -1, (duk_size_t) start_pos, (duk_size_t) end_pos);
47901 duk_int_t start_pos, end_pos; local
47921 start_pos = duk_to_int_clamped(thr, 0, -len, len);
47922 if (start_pos < 0) {
47923 start_pos = len + start_pos;
47925 DUK_ASSERT(start_pos >= 0 && start_pos <= len);
47931 DUK_ASSERT(start_pos <= len);
47932 end_pos = start_pos + duk_to_int_clamped(thr, 1, 0, len - start_pos);
47934 DUK_ASSERT(start_pos >= 0 && start_pos <= len);
47936 DUK_ASSERT(end_pos >= start_pos);
47938 duk_substring(thr, -1, (duk_size_t) start_pos, (duk_size_t) end_pos);
47945 duk_int_t start_pos, end_pos; local
47954 start_pos = duk_to_int_clamped(thr, 0, -len, len);
47955 if (start_pos < 0) {
47956 start_pos = len + start_pos;
47966 DUK_ASSERT(start_pos >= 0 && start_pos <= len);
47969 if (end_pos < start_pos) {
47970 end_pos = start_pos;
47973 DUK_ASSERT(end_pos >= start_pos);
47975 duk_substring(thr, -1, (duk_size_t) start_pos, (duk_size_t) end_pos);