Lines Matching refs:repl
313 …const char *repl = mp_obj_str_get_str((mp_obj_is_callable(replace) ? mp_call_function_1(replace, M… in re_sub_helper() local
316 while (*repl != '\0') { in re_sub_helper()
317 if (*repl == '\\') { in re_sub_helper()
318 ++repl; in re_sub_helper()
320 if (*repl == 'g' && repl[1] == '<') { in re_sub_helper()
322 repl += 2; in re_sub_helper()
326 if ('0' <= *repl && *repl <= '9') { in re_sub_helper()
330 match_no = match_no * 10 + (*repl++ - '0'); in re_sub_helper()
331 } while ('0' <= *repl && *repl <= '9'); in re_sub_helper()
332 if (is_g_format && *repl == '>') { in re_sub_helper()
333 ++repl; in re_sub_helper()
346 } else if (*repl == '\\') { in re_sub_helper()
348 vstr_add_byte(&vstr_return, *repl++); in re_sub_helper()
352 vstr_add_byte(&vstr_return, *repl++); in re_sub_helper()