Lines Matching refs:ptr
85 PCRE2_SPTR ptr = *ptrptr; in find_text_end() local
87 for (; ptr < ptrend; ptr++) in find_text_end()
91 if (ptr[0] == CHAR_BACKSLASH && ptr < ptrend - 1 && ptr[1] == CHAR_E) in find_text_end()
94 ptr += 1; in find_text_end()
98 else if (*ptr == CHAR_RIGHT_CURLY_BRACKET) in find_text_end()
104 else if (*ptr == CHAR_COLON && !last && nestlevel == 0) goto EXIT; in find_text_end()
106 else if (*ptr == CHAR_DOLLAR_SIGN) in find_text_end()
108 if (ptr < ptrend - 1 && ptr[1] == CHAR_LEFT_CURLY_BRACKET) in find_text_end()
111 ptr += 1; in find_text_end()
115 else if (*ptr == CHAR_BACKSLASH) in find_text_end()
121 if (ptr < ptrend - 1) switch (ptr[1]) in find_text_end()
127 ptr += 1; in find_text_end()
131 ptr += 1; /* Must point after \ */ in find_text_end()
132 erc = PRIV(check_escape)(&ptr, ptrend, &ch, &errorcode, in find_text_end()
134 ptr -= 1; /* Back to last code unit of escape */ in find_text_end()
176 *ptrptr = ptr; in find_text_end()
203 PCRE2_SPTR ptr = *ptrptr; in read_name_subst() local
204 PCRE2_SPTR nameptr = ptr; in read_name_subst()
206 if (ptr >= ptrend) /* No characters in name */ in read_name_subst()
220 while (ptr < ptrend) in read_name_subst()
222 GETCHAR(c, ptr); in read_name_subst()
226 ptr++; in read_name_subst()
227 FORWARDCHARTEST(ptr, ptrend); in read_name_subst()
238 while (ptr < ptrend && MAX_255(*ptr) && (ctypes[*ptr] & ctype_word) != 0) in read_name_subst()
240 ptr++; in read_name_subst()
246 if (ptr - nameptr > MAX_NAME_SIZE) in read_name_subst()
250 if (ptr == nameptr) in read_name_subst()
253 *ptrptr = ptr; in read_name_subst()
257 *ptrptr = ptr; in read_name_subst()
754 PCRE2_SPTR ptr; in pcre2_substitute() local
1030 ptr = replacement; in pcre2_substitute()
1033 CHECKMEMCPY(ptr, rlength); in pcre2_substitute()
1055 if (ptr >= repend) in pcre2_substitute()
1059 ptr = ptrstack[--ptrstackptr]; in pcre2_substitute()
1067 if (ptr[0] == CHAR_BACKSLASH && ptr < repend - 1 && ptr[1] == CHAR_E) in pcre2_substitute()
1070 ptr += 2; in pcre2_substitute()
1078 if (*ptr == CHAR_DOLLAR_SIGN) in pcre2_substitute()
1087 if (++ptr >= repend) goto BAD; in pcre2_substitute()
1088 if ((next = *ptr) == CHAR_DOLLAR_SIGN) goto LOADLITERAL; in pcre2_substitute()
1105 ++ptr; in pcre2_substitute()
1111 ++ptr; in pcre2_substitute()
1131 ++ptr; in pcre2_substitute()
1139 if (++ptr >= repend) goto BAD; in pcre2_substitute()
1140 next = *ptr; in pcre2_substitute()
1148 if (++ptr >= repend) goto BAD; in pcre2_substitute()
1149 next = *ptr; in pcre2_substitute()
1155 if (++ptr >= repend) goto BAD; in pcre2_substitute()
1156 next = *ptr; in pcre2_substitute()
1163 while (++ptr < repend) in pcre2_substitute()
1165 next = *ptr; in pcre2_substitute()
1178 while (++ptr < repend && *ptr >= CHAR_0 && *ptr <= CHAR_9); in pcre2_substitute()
1192 PCRE2_SPTR name_start = ptr; in pcre2_substitute()
1193 if (!read_name_subst(&ptr, repend, utf, code->tables + ctypes_offset)) in pcre2_substitute()
1195 name_len = ptr - name_start; in pcre2_substitute()
1209 !star && ptr < repend - 2 && *ptr == CHAR_COLON) in pcre2_substitute()
1211 special = *(++ptr); in pcre2_substitute()
1218 text1_start = ++ptr; in pcre2_substitute()
1219 rc = find_text_end(code, &ptr, repend, special == CHAR_MINUS); in pcre2_substitute()
1221 text1_end = ptr; in pcre2_substitute()
1223 if (special == CHAR_PLUS && *ptr == CHAR_COLON) in pcre2_substitute()
1225 text2_start = ++ptr; in pcre2_substitute()
1226 rc = find_text_end(code, &ptr, repend, TRUE); in pcre2_substitute()
1228 text2_end = ptr; in pcre2_substitute()
1234 if (ptr >= repend || *ptr != CHAR_RIGHT_CURLY_BRACKET) in pcre2_substitute()
1241 ptr++; in pcre2_substitute()
1246 if (ptr >= repend || *ptr != CHAR_GREATER_THAN_SIGN) in pcre2_substitute()
1248 ptr++; in pcre2_substitute()
1352 ptrstack[ptrstackptr++] = ptr; in pcre2_substitute()
1357 ptr = text1_start; in pcre2_substitute()
1362 ptr = text2_start; in pcre2_substitute()
1391 *ptr == CHAR_BACKSLASH) in pcre2_substitute()
1396 if (ptr < repend - 1) switch (ptr[1]) in pcre2_substitute()
1401 ptr += 2; in pcre2_substitute()
1407 ptr += 2; in pcre2_substitute()
1408 if (ptr + 2 < repend && ptr[0] == CHAR_BACKSLASH && ptr[1] == CHAR_U) in pcre2_substitute()
1413 ptr += 2; in pcre2_substitute()
1420 ptr += 2; in pcre2_substitute()
1426 ptr += 2; in pcre2_substitute()
1427 if (ptr + 2 < repend && ptr[0] == CHAR_BACKSLASH && ptr[1] == CHAR_L) in pcre2_substitute()
1432 ptr += 2; in pcre2_substitute()
1460 ptr++; /* Point after \ */ in pcre2_substitute()
1461 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode, in pcre2_substitute()
1502 if (ptr >= repend || *ptr != CHAR_LESS_THAN_SIGN) in pcre2_substitute()
1504 ++ptr; in pcre2_substitute()
1506 name_start = ptr; in pcre2_substitute()
1507 if (!read_name_subst(&ptr, repend, utf, code->tables + ctypes_offset)) in pcre2_substitute()
1509 name_len = ptr - name_start; in pcre2_substitute()
1511 if (ptr >= repend || *ptr != CHAR_GREATER_THAN_SIGN) in pcre2_substitute()
1513 ++ptr; in pcre2_substitute()
1540 ch_start = ptr; in pcre2_substitute()
1541 GETCHARINCTEST(ch, ptr); /* Get character value, increment pointer */ in pcre2_substitute()
1546 CHECKCASECPY_DEFAULT(ch_start, ptr - ch_start); in pcre2_substitute()
1548 CHECKMEMCPY(ch_start, ptr - ch_start); in pcre2_substitute()
1703 *blength = (PCRE2_SIZE)(ptr - replacement); in pcre2_substitute()