gi-glib-2.0.23: GLib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.PatternSpec

Description

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

Synopsis

Exported types

Methods

Overloaded methods

equal

patternSpecEqual Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PatternSpec

pspec1: a PatternSpec

-> PatternSpec

pspec2: another PatternSpec

-> m Bool

Returns: Whether the compiled patterns are equal

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

free

patternSpecFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PatternSpec

pspec: a PatternSpec

-> m () 

Frees the memory allocated for the PatternSpec.