gi-glib-2.0.25: 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

newtype PatternSpec Source #

Memory-managed wrapper type.

Constructors

PatternSpec (ManagedPtr PatternSpec) 

Instances

Instances details
Eq PatternSpec Source # 
Instance details

Defined in GI.GLib.Structs.PatternSpec

Methods

(==) :: PatternSpec -> PatternSpec -> Bool

(/=) :: PatternSpec -> PatternSpec -> Bool

GBoxed PatternSpec Source # 
Instance details

Defined in GI.GLib.Structs.PatternSpec

ManagedPtrNewtype PatternSpec Source # 
Instance details

Defined in GI.GLib.Structs.PatternSpec

Methods

toManagedPtr :: PatternSpec -> ManagedPtr PatternSpec

TypedObject PatternSpec Source # 
Instance details

Defined in GI.GLib.Structs.PatternSpec

Methods

glibType :: IO GType

HasParentTypes PatternSpec Source # 
Instance details

Defined in GI.GLib.Structs.PatternSpec

IsGValue (Maybe PatternSpec) Source #

Convert PatternSpec to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GLib.Structs.PatternSpec

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe PatternSpec -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe PatternSpec)

type ParentTypes PatternSpec Source # 
Instance details

Defined in GI.GLib.Structs.PatternSpec

type ParentTypes PatternSpec = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, equal, free, match, matchString.

Getters

None.

Setters

None.

copy

patternSpecCopy :: (HasCallStack, MonadIO m) => PatternSpec -> m PatternSpec Source #

No description available in the introspection data.

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.

match

patternSpecMatch :: (HasCallStack, MonadIO m) => PatternSpec -> Word32 -> Text -> Text -> m Bool Source #

No description available in the introspection data.

matchString

patternSpecMatchString :: (HasCallStack, MonadIO m) => PatternSpec -> Text -> m Bool Source #

No description available in the introspection data.

new

patternSpecNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

pattern: a zero-terminated UTF-8 encoded string

-> m PatternSpec

Returns: a newly-allocated PatternSpec

Compiles a pattern to a PatternSpec.