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
STRUCTS_TYPE_REGEX(3) FreeBSD Library Functions Manual STRUCTS_TYPE_REGEX(3)

structs_type_regex
structs type for regular expressions

PDEL Library (libpdel, -lpdel)

#include <sys/types.h>
#include <regex.h>
#include <pdel/structs/structs.h>
#include <pdel/structs/type/regex.h>

STRUCTS_REGEX_TYPE(mtype, flags);

extern const struct structs_type structs_type_regex;
extern const struct structs_type structs_type_regex_icase;

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.

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

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

Archie Cobbs ⟨archie@freebsd.org⟩
April 22, 2002 FreeBSD 13.1-RELEASE

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 ManDoc.