glib-2.0 Reference Manual

Synopsis

public class Regex : Boxed  {
    public                              Regex                     ( string              pattern,
                                                                    RegexCompileFlags   compile_options = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ% ) 
                                                             throws RegexError;


    public    string                    get_pattern               (  ) ;
    public    int                       get_max_backref           (  ) ;
    public    int                       get_capture_count         (  ) ;
    public    int                       get_string_number         ( string              name ) ;
    public    static string             escape_string             ( string              str,
                                                                    int                 length ) ;
    public    static bool               match_simple              ( string              pattern,
                                                                    string              str,
                                                                    RegexCompileFlags   compile_options = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ% ) ;
    public    bool                      match                     ( string              str,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) ;
    public    bool                      match_full                ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) 
                                                             throws RegexError;
    public    bool                      match_all                 ( string              str,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) ;
    public    bool                      match_all_full            ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) 
                                                             throws RegexError;
    public    static string[]           split_simple              ( string              pattern,
                                                                    string              str,
                                                                    RegexCompileFlags   compile_options = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ% ) ;
    public    string[]                  split                     ( string              str,
                                                                    RegexMatchFlags     match_options = ÿ% ) ;
    public    bool                      split_full                ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    int                 max_tokens = ÿ% ) 
                                                             throws RegexError;
    public    string                    replace                   ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position,
                                                                    string              replacement,
                                                                    RegexMatchFlags     match_options = ÿ% ) 
                                                             throws RegexError;
    public    string                    replace_literal           ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position,
                                                                    string              replacement,
                                                                    RegexMatchFlags     match_options = ÿ% ) 
                                                             throws RegexError;
    public    string                    replace_eval              ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    RegexEvalCallback   eval,
                                                                    void**              user_data ) 
                                                             throws RegexError;
    public    static bool               check_replacement         ( bool                has_references = null ) 
                                                             throws RegexError;
}

Regex Description

Details

Constructor Details

Regex ()
    public                              Regex                     ( string              pattern,
                                                                    RegexCompileFlags   compile_options = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ% ) 
                                                             throws RegexError;		

Field Details

Signal Details

Property Details

Method Details

get_pattern ()
    public    string                    get_pattern               (  ) ;		

get_max_backref ()
    public    int                       get_max_backref           (  ) ;		

get_capture_count ()
    public    int                       get_capture_count         (  ) ;		

get_string_number ()
    public    int                       get_string_number         ( string              name ) ;		

escape_string ()
    public    static string             escape_string             ( string              str,
                                                                    int                 length ) ;		

match_simple ()
    public    static bool               match_simple              ( string              pattern,
                                                                    string              str,
                                                                    RegexCompileFlags   compile_options = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ% ) ;		

match ()
    public    bool                      match                     ( string              str,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) ;		

match_full ()
    public    bool                      match_full                ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) 
                                                             throws RegexError;		

match_all ()
    public    bool                      match_all                 ( string              str,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) ;		

match_all_full ()
    public    bool                      match_all_full            ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    MatchInfo           match_info = null ) 
                                                             throws RegexError;		

split_simple ()
    public    static string[]           split_simple              ( string              pattern,
                                                                    string              str,
                                                                    RegexCompileFlags   compile_options = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ% ) ;		

split ()
    public    string[]                  split                     ( string              str,
                                                                    RegexMatchFlags     match_options = ÿ% ) ;		

split_full ()
    public    bool                      split_full                ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position = ÿ%,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    int                 max_tokens = ÿ% ) 
                                                             throws RegexError;		

replace ()
    public    string                    replace                   ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position,
                                                                    string              replacement,
                                                                    RegexMatchFlags     match_options = ÿ% ) 
                                                             throws RegexError;		

replace_literal ()
    public    string                    replace_literal           ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position,
                                                                    string              replacement,
                                                                    RegexMatchFlags     match_options = ÿ% ) 
                                                             throws RegexError;		

replace_eval ()
    public    string                    replace_eval              ( string              str,
                                                                    long                string_len,
                                                                    int                 start_position,
                                                                    RegexMatchFlags     match_options = ÿ%,
                                                                    RegexEvalCallback   eval,
                                                                    void**              user_data ) 
                                                             throws RegexError;		

check_replacement ()
    public    static bool               check_replacement         ( bool                has_references = null ) 
                                                             throws RegexError;		


Created by Valadoc