HP-UX Reference (11i v1 00/12) - 3 Library Functions N-Z (vol 7)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/nan.3m
________________________________________________________________
___ ___
r
regexp(3X) regexp(3X)
The additional external variables sed and nbra are used for special purposes.
EXTERNAL INFLUENCES
Locale
The LC_COLLATE category determines the collating sequence used in compiling and executing regular
expressions.
The LC_CTYPE category determines the interpretation of text as single and/or multi-byte characters, and
the characters matched by character class expressions in regular expressions.
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
The following is an example of how the regular expression macros and calls look from grep(1):
#define INIT register char *sp = instring;
#define GETC() (*sp++)
#define PEEKC() (*sp)
#define UNGETC(c) (--sp)
#define RETURN(c) return;
#define ERROR(c) regerr()
#include <regexp.h>
...
(void) compile(*argv, expbuf, &expbuf[ESIZE], ’\0’);
...
if (step(linebuf, expbuf))
succeed();
SEE ALSO
grep(1), regcomp(3C), setlocale(3C), regexp(5).
STANDARDS CONFORMANCE
advance(): AES, SVID2, SVID3, XPG2, XPG3, XPG4
compile(): AES, SVID2, SVID3, XPG2, XPG3, XPG4
loc1: AES, SVID2, SVID3, XPG2, XPG3, XPG4
loc2: AES, SVID2, SVID3, XPG2, XPG3, XPG4
locs: AES, SVID2, SVID3, XPG2, XPG3, XPG4
step(): AES, SVID2, SVID3, XPG2, XPG3, XPG4
HP-UX Release 11i: December 2000 − 3 − Section 3−−761
___
___