From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- lib/pattern.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/pattern.h (limited to 'lib/pattern.h') diff --git a/lib/pattern.h b/lib/pattern.h new file mode 100644 index 00000000..83c1c9f2 --- /dev/null +++ b/lib/pattern.h @@ -0,0 +1,14 @@ +# PATTERN.H -- Pattern Matching Metacharacters (STRMATCH, PATMATCH). + +define CH_BOL '^' # beginning of line symbol +define CH_NOT '^' # not, in character classes +define CH_EOL '$' # end of line symbol +define CH_ANY '?' # match any single character +define CH_CLOSURE '*' # zero or more occurrences +define CH_CCL '[' # begin character class +define CH_CCLEND ']' # end character class +define CH_RANGE '-' # as in [a-z] +define CH_ESCAPE '\\' # escape character +define CH_WHITESPACE '#' # match optional whitespace +define CH_IGNORECASE '{' # begin ignoring case +define CH_MATCHCASE '}' # begin checking case -- cgit