Lines Matching defs:needle_length
880 int64_t needle_length,
887 } else if (is_forward || needle_length == 0) {
895 if (offset_i64 + needle_length <= length_i64) {
898 } else if (needle_length == 0) {
934 size_t needle_length;
935 if (!StringBytes::Size(isolate, needle, enc).To(&needle_length)) return;
939 needle_length,
942 if (needle_length == 0) {
957 if ((is_forward && needle_length + offset > haystack_length) ||
958 needle_length > haystack_length) {
1005 needle_length,
1009 uint8_t* needle_data = node::UncheckedMalloc<uint8_t>(needle_length);
1014 isolate, needle_data, 0, needle_length, String::NO_NULL_TERMINATION);
1019 needle_length,
1047 const size_t needle_length = needle_contents.length();
1051 needle_length,
1054 if (needle_length == 0) {
1069 if ((is_forward && needle_length + offset > haystack_length) ||
1070 needle_length > haystack_length) {
1077 if (haystack_length < 2 || needle_length < 2) {
1084 needle_length / 2,
1093 needle_length,