Lines Matching defs:pm
349 * of the match but the start offset from 'pm[idx]' must be used.
352 pmatch_copy(char *dst, const char *matched_str, regmatch_t pm[], int idx)
354 int len = pm[idx].rm_eo - pm[idx].rm_so;
355 (void) memcpy(dst, matched_str + pm[idx].rm_so, len);
369 regmatch_t pm[10];
381 * ()'s in the regular expression. pm[0] is reserved for the whole
384 ret = regexec(&suri_re_uri, sh->sh_uri, 10, pm, 0);
387 pmatch_copy(gen_uri->sgu_scheme, sh->sh_uri, pm, 1);
389 pmatch_copy(gen_uri->sgu_authority, sh->sh_uri, pm, 3);
391 pmatch_copy(gen_uri->sgu_path, sh->sh_uri, pm, 5);
393 pmatch_copy(gen_uri->sgu_query, sh->sh_uri, pm, 6);
395 pmatch_copy(gen_uri->sgu_fragment, sh->sh_uri, pm, 8);
684 regmatch_t pm[6];
709 ret1 = regexec(&suri_re_lu1, gen_uri->sgu_path, 2, pm, 0);
711 pmatch_copy(so_lu->sl_prop_luname, gen_uri->sgu_path, pm, 1);
716 ret2 = regexec(&suri_re_lu2, gen_uri->sgu_path, 4, pm, 0);
718 pmatch_copy(so_lu->sl_prop_initiator, gen_uri->sgu_path, pm, 1);
719 pmatch_copy(so_lu->sl_prop_target, gen_uri->sgu_path, pm, 2);
720 pmatch_copy(so_lu->sl_prop_luname, gen_uri->sgu_path, pm, 3);
735 ret1 = regexec(&suri_re_lu_split, copy, 6, pm, 0);
738 pmatch_copy(part1, copy, pm, 1);
739 pmatch_copy(part2, copy, pm, 2);
740 pmatch_copy(part3, copy, pm, 4);
771 regmatch_t pm[3];
925 ret = regexec(&suri_re_iscsi_path, gen_uri->sgu_path, 2, pm, 0);
949 pmatch_copy(name, gen_uri->sgu_path, pm, 1);