ncmpc  0.29
Functions
match.h File Reference
#include "config.h"
#include "Compiler.h"
#include <stdbool.h>
#include <glib.h>

Go to the source code of this file.

Functions

GRegex * compile_regex (const char *src, bool anchor)
 
gcc_pure bool match_regex (GRegex *regex, const char *line)
 
gcc_pure bool match_line (const char *line, const char *needle)
 

Function Documentation

◆ compile_regex()

GRegex* compile_regex ( const char *  src,
bool  anchor 
)

◆ match_regex()

gcc_pure bool match_regex ( GRegex *  regex,
const char *  line 
)

◆ match_line()

gcc_pure bool match_line ( const char *  line,
const char *  needle 
)

Checks whether the specified line matches the search string. Case is ignored.