forked from AuroraMiddleware/gtk
css: Add _gtk_css_parser_has_prefix()
This commit is contained in:
parent
11ec705133
commit
38be9fe879
@ -92,6 +92,15 @@ _gtk_css_parser_begins_with (GtkCssParser *parser,
|
||||
return *parser->data == c;
|
||||
}
|
||||
|
||||
gboolean
|
||||
_gtk_css_parser_has_prefix (GtkCssParser *parser,
|
||||
const char *prefix)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_CSS_PARSER (parser), FALSE);
|
||||
|
||||
return g_ascii_strncasecmp (parser->data, prefix, strlen (prefix)) == 0;
|
||||
}
|
||||
|
||||
guint
|
||||
_gtk_css_parser_get_line (GtkCssParser *parser)
|
||||
{
|
||||
|
@ -47,6 +47,8 @@ guint _gtk_css_parser_get_position (GtkCssParser *parser
|
||||
gboolean _gtk_css_parser_is_eof (GtkCssParser *parser);
|
||||
gboolean _gtk_css_parser_begins_with (GtkCssParser *parser,
|
||||
char c);
|
||||
gboolean _gtk_css_parser_has_prefix (GtkCssParser *parser,
|
||||
const char *prefix);
|
||||
gboolean _gtk_css_parser_is_string (GtkCssParser *parser);
|
||||
|
||||
/* IMPORTANT:
|
||||
|
Loading…
Reference in New Issue
Block a user