<GPatternSpec>

<GPatternSpec>

Description

A GPatternSpec struct is the 'compiled' form of a pattern. This structure is opaque and its fields cannot be accessed directly.

Functions

copy

(define-values (%return) (pattern-spec:copy self))

Undocumented

Parameters

pspec

Passed as self

equal?

(define-values (%return) (pattern-spec:equal? self pspec2))

Compares two compiled pattern specs and returns whether they will match the same set of strings.

Parameters

pspec1

a GPatternSpec

Passed as self

pspec2

another GPatternSpec

Passed as pspec2

free

(define-values () (pattern-spec:free self))

Frees the memory allocated for the GPatternSpec.

Parameters

pspec

a GPatternSpec

Passed as self

match?

(define-values
  (%return)
  (pattern-spec:match? self string-length string string-reversed))

Undocumented

Parameters

pspec

Passed as self

string_length

Passed as string-length

string

Passed as string

string_reversed

Passed as string-reversed

match-string?

(define-values (%return) (pattern-spec:match-string? self string))

Undocumented

Parameters

pspec

Passed as self

string

Passed as string

pattern-spec:new

(define-values (%return) (pattern-spec:new pattern))

Undocumented

Parameters

pattern

Passed as pattern