Searched defs:regexp (Results 1 - 11 of 11) sorted by relevance

/illumos-gate/usr/src/cmd/vi/port/
H A Dex_re.h41 struct regexp { struct
52 var struct regexp *re; /* Last re */
53 var struct regexp *scanre; /* Last scanning re */
54 var struct regexp *subre; /* Last substitute re */
60 void savere(struct regexp ** a);
61 void resre(struct regexp * a);
/illumos-gate/usr/src/cmd/valtools/
H A Dckstr.c55 #define USAGE "[-l length] [[-r regexp] [...]]"
117 char **regexp; local
131 regexp = (char **)calloc(maxregexp, sizeof (char *));
132 if (!regexp) {
162 regexp[nregexp++] = optarg;
165 regexp = (char **)realloc(regexp,
167 if (!regexp) {
172 (void) memset(regexp + nregexp, 0,
226 if (ckstr_val(regexp, lengt
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dckstr.c63 sethlp(char *msg, char *regexp[], int length) argument
74 if (regexp && regexp[0]) {
75 (void) strcat(msg, regexp[1] ? HLPMSG2 : HLPMSG3);
76 for (i = 0; regexp[i]; i++) {
78 (void) strcat(msg, regexp[i]);
86 ckstr_val(char *regexp[], int length, char *input) argument
96 if (regexp && regexp[0]) {
98 for (i = 0; !valid && regexp[
113 ckstr_err(char *regexp[], int length, char *error, char *input) argument
132 ckstr_hlp(char *regexp[], int length, char *help) argument
142 ckstr(char *strval, char *regexp[], int length, char *defstr, char *error, char *help, char *prompt) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dregcmp.c94 static int get_count(int *countp, const char *regexp);
95 static int get_digit(const char *regexp);
96 static int get_wchar(wchar_t *wchar, const char *regexp);
123 regcmp(const char *regexp, ...) argument
160 va_start(arg_listp, regexp);
161 next_argp = regexp;
181 va_start(arg_listp, regexp);
183 char_size = get_wchar(&current_char, regexp);
187 regexp += char_size;
189 regexp
931 get_count(int *countp, const char *regexp) argument
953 get_digit(const char *regexp) argument
970 get_wchar(wchar_t *wcharp, const char *regexp) argument
[all...]
H A Dregex.c135 const char *regexp);
140 const char *regexp);
145 const char *regexp);
149 const char *regexp);
172 regex(const char *regexp, const char *stringp, ...) argument
191 if ((stringp == (char *)0) || (regexp == (char *)0)) {
215 if ((int)*regexp == (int)START_OF_STRING_MARK) {
222 regexp++;
223 end_of_matchp = test_string(stringp, regexp);
225 } else if ((int)*regexp
653 test_repeated_ascii_char(const char *repeat_startp, const char *stringp, const char *regexp) argument
669 test_repeated_multibyte_char(const char *repeat_startp, const char *stringp, const char *regexp) argument
685 test_repeated_group(const char *repeat_startp, const char *stringp, const char *regexp) argument
704 test_string(const char *stringp, const char *regexp) argument
[all...]
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_iters.c38 #error I cannot find any regexp functions
75 * regexp (w) the ed-style regexp created from glob
79 * regexp is filled in with allocated memory contained a regular
82 * character and realm is not NULL, "@*" is appended to the regexp.
93 * regexp is anchored with ^ and $
95 static kadm5_ret_t glob_to_regexp(char *glob, char *realm, char **regexp) argument
104 /* A character of glob can turn into two in regexp, plus ^ and $ */
111 *regexp = p;
210 char *regexp; local
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dan_to_ln.c180 * "(" <regexp> ")"
181 * Where: <regexp> is a selector regular expression. If this
189 * "s/" <regexp> "/" <text> "/" ["g"]
208 char *regexp, *startp, *endp = 0; local
228 regexp = (char *) malloc((size_t) regexlen+1);
230 if (regexp) {
231 strncpy(regexp, startp, regexlen);
232 regexp[regexlen] = '\0';
238 if (!regcomp(&match_exp, regexp, REG_EXTENDED) &&
246 compile(regexp,
285 do_replacement(char *regexp, char *repl, int doall, char *in, char *out) argument
[all...]
/illumos-gate/usr/src/cmd/awk/
H A Db.c562 static Node *regexp(void), *primary(void), *concat(Node *);
577 np = regexp();
589 regexp(void) function
634 np = regexp();
/illumos-gate/usr/src/tools/cscope-fast/
H A Dfind.c65 static char *regexp; /* regular expression */ variable
182 if (regexp != NULL) {
186 if (*s != '\0' && regex(regexp, s) != NULL) {
197 if (regexp != NULL) {
211 if (regex(regexp, s) != NULL) {
333 if (regexp != NULL) {
337 if (*s != '\0' && regex(regexp, s) != NULL) {
689 if (regex(regexp, s) != NULL) {
761 if ((regexp = regcmp(pattern, (char *)NULL)) == NULL) {
815 if ((regexp
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_matching.c144 regex_t regexp; /* Compiled regular expression */ member in struct:_rule_component
168 regfree(&rc->regexp);
354 ret = regcomp(&rc->regexp, value, REG_EXTENDED);
356 (void) regerror(ret, &rc->regexp, err_buf, sizeof(err_buf));
474 code = regexec(&rc->regexp, value, 0, NULL, 0);
/illumos-gate/usr/src/lib/libast/common/regex/
H A Dregcomp.c125 int regexp; /* <regexp.h> compatibility */ member in struct:Cenv_s
1297 if (env->regexp)
1346 if (env->regexp)
1367 if (env->regexp)
1556 if (env->regexp)
1592 if (env->regexp)
1654 if (env->regexp)
3260 env.regexp = !!(env.flags & REG_REGEXP);

Completed in 130 milliseconds