GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  STRUCTS_TYPE_REGEX (3)

NAME

structs_type_regex - structs type for regular expressions

CONTENTS

Library
Synopsis
Description
See Also
History
Authors

LIBRARY

PDEL Library (libpdel, -lpdel)

SYNOPSIS


.In sys/types.h
.In regex.h
.In pdel/structs/structs.h
.In pdel/structs/type/regex.h STRUCTS_REGEX_TYPE mtype flags
.Vt extern const struct structs_type structs_type_regex ;
.Vt extern const struct structs_type structs_type_regex_icase ;

DESCRIPTION

The STRUCTS_REGEX_TYPE macro defines a structs(3) type (i.e., a struct structs_type) for describing regular expressions. The data structure described by this type is a struct structs_regex:

struct structs_regex {
    const char  *pat;       /* ascii pattern */
    regex_t     reg;        /* compiled pattern */
};

pat points to the ASCII form of the regular expression pattern, which is stored in a buffer allocated using typed_mem(3) type mtype. reg is the compiled form of the pattern.

The flags parameter is passed to regcomp(3).

The default value for this type is the pattern represented by the empty string.

Two pre-defined types are included. structs_type_regex is defined with memory type STRUCTS_REGEX_MTYPE and flags REG_EXTENDED.

structs_type_regex_icase is defined with memory type STRUCTS_REGEX_MTYPE and flags REG_EXTENDED | REG_ICASE.

SEE ALSO

libpdel(3), regex(3), structs(3), structs_type(3), typed_mem(3)

HISTORY

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

AUTHORS


.An Archie Cobbs Aq archie@freebsd.org
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.