rsvg2 3.0.7-x64-mingw32 → 3.0.8-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/rsvg2/extconf.rb +1 -0
- data/lib/2.2/rsvg2.so +0 -0
- data/lib/2.3/rsvg2.so +0 -0
- data/vendor/local/bin/croco-0.6-config +2 -2
- data/vendor/local/bin/csslint-0.6.exe +0 -0
- data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
- data/vendor/local/bin/librsvg-2-2.dll +0 -0
- data/vendor/local/bin/rsvg-convert.exe +0 -0
- data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +2 -2
- data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +26 -4
- data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
- data/vendor/local/lib/libcroco-0.6.a +0 -0
- data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
- data/vendor/local/lib/libcroco-0.6.la +3 -3
- data/vendor/local/lib/librsvg-2.a +0 -0
- data/vendor/local/lib/librsvg-2.dll.a +0 -0
- data/vendor/local/lib/librsvg-2.la +2 -2
- data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +1 -1
- data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +2 -2
- data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +13 -14
- data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/index.html +5 -6
- data/vendor/local/share/gtk-doc/html/libcroco/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +360 -221
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +209 -132
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +251 -164
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +693 -449
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +365 -259
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +148 -107
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +805 -463
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1109 -753
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +267 -180
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +351 -255
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -644
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +234 -124
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +437 -271
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +139 -86
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +517 -352
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +326 -252
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +219 -186
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +219 -176
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1231 -1220
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +142 -83
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +351 -256
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +155 -99
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +313 -207
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +321 -210
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +465 -284
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +507 -231
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +54 -40
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +465 -426
- data/vendor/local/share/gtk-doc/html/libcroco/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/style.css +317 -104
- data/vendor/local/share/gtk-doc/html/libcroco/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1039 -724
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +29 -32
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +16 -19
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +13 -16
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +14 -17
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +15 -20
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +12 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +17 -22
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +18 -23
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +31 -36
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +79 -84
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +4 -4
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +31 -28
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +15 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +55 -59
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +247 -190
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +336 -239
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +95 -70
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +77 -37
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +314 -104
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
- metadata +14 -10
- data/lib/2.0/rsvg2.so +0 -0
- data/lib/2.1/rsvg2.so +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +0 -582
@@ -2,30 +2,26 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>cr-parser</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
5
|
+
<title>cr-parser: Libcroco Reference Manual</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Libcroco Reference Manual">
|
8
8
|
<link rel="up" href="ch01.html" title="Extensive APIs description">
|
9
9
|
<link rel="prev" href="libcroco-cr-om-parser.html" title="cr-om-parser">
|
10
10
|
<link rel="next" href="libcroco-cr-parsing-location.html" title="cr-parsing-location">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.24.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
|
20
|
-
<
|
21
|
-
<td><a accesskey="
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
|
26
|
-
<a href="#libcroco-cr-parser.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#libcroco-cr-parser.description" class="shortcut">Description</a></span>
|
19
|
+
</td>
|
20
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
21
|
+
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
22
|
+
<td><a accesskey="p" href="libcroco-cr-om-parser.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
+
<td><a accesskey="n" href="libcroco-cr-parsing-location.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
24
|
+
</tr></table>
|
29
25
|
<div class="refentry">
|
30
26
|
<a name="libcroco-cr-parser"></a><div class="titlepage"></div>
|
31
27
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -33,881 +29,1154 @@
|
|
33
29
|
<h2><span class="refentrytitle"><a name="libcroco-cr-parser.top_of_page"></a>cr-parser</span></h2>
|
34
30
|
<p>cr-parser</p>
|
35
31
|
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
32
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
37
33
|
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv">
|
39
|
-
<a name="libcroco-cr-parser.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">struct <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser">CRParser</a>;
|
41
|
-
<a class="link" href="libcroco-cr-parser.html#CRParserPriv" title="CRParserPriv">CRParserPriv</a>;
|
42
|
-
<span class="returnvalue">void</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-destroy" title="cr_parser_destroy ()">cr_parser_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
43
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-get-parsing-location" title="cr_parser_get_parsing_location ()">cr_parser_get_parsing_location</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> const *a_this</code></em>,
|
44
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-parsing-location.html#CRParsingLocation" title="struct CRParsingLocation"><span class="type">CRParsingLocation</span></a> *a_loc</code></em>);
|
45
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-get-sac-handler" title="cr_parser_get_sac_handler ()">cr_parser_get_sac_handler</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
46
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-doc-handler.html#CRDocHandler" title="struct CRDocHandler"><span class="type">CRDocHandler</span></a> **a_handler</code></em>);
|
47
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-get-tknzr" title="cr_parser_get_tknzr ()">cr_parser_get_tknzr</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
48
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> **a_tknzr</code></em>);
|
49
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-get-use-core-grammar" title="cr_parser_get_use_core_grammar ()">cr_parser_get_use_core_grammar</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> const *a_this</code></em>,
|
50
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *a_use_core_grammar</code></em>);
|
51
|
-
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * <a class="link" href="libcroco-cr-parser.html#cr-parser-new" title="cr_parser_new ()">cr_parser_new</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> *a_tknzr</code></em>);
|
52
|
-
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * <a class="link" href="libcroco-cr-parser.html#cr-parser-new-from-buf" title="cr_parser_new_from_buf ()">cr_parser_new_from_buf</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
|
53
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_len</code></em>,
|
54
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>,
|
55
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_free_buf</code></em>);
|
56
|
-
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * <a class="link" href="libcroco-cr-parser.html#cr-parser-new-from-file" title="cr_parser_new_from_file ()">cr_parser_new_from_file</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_file_uri</code></em>,
|
57
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
|
58
|
-
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * <a class="link" href="libcroco-cr-parser.html#cr-parser-new-from-input" title="cr_parser_new_from_input ()">cr_parser_new_from_input</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_input</code></em>);
|
59
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse" title="cr_parser_parse ()">cr_parser_parse</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
60
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-buf" title="cr_parser_parse_buf ()">cr_parser_parse_buf</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
61
|
-
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
|
62
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_len</code></em>,
|
63
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
|
64
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-charset" title="cr_parser_parse_charset ()">cr_parser_parse_charset</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
65
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_value</code></em>,
|
66
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-parsing-location.html#CRParsingLocation" title="struct CRParsingLocation"><span class="type">CRParsingLocation</span></a> *a_charset_sym_location</code></em>);
|
67
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-declaration" title="cr_parser_parse_declaration ()">cr_parser_parse_declaration</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
68
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_property</code></em>,
|
69
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> **a_expr</code></em>,
|
70
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *a_important</code></em>);
|
71
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-expr" title="cr_parser_parse_expr ()">cr_parser_parse_expr</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
72
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> **a_expr</code></em>);
|
73
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-file" title="cr_parser_parse_file ()">cr_parser_parse_file</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
74
|
-
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_file_uri</code></em>,
|
75
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
|
76
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-font-face" title="cr_parser_parse_font_face ()">cr_parser_parse_font_face</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
77
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-import" title="cr_parser_parse_import ()">cr_parser_parse_import</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
78
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> **a_media_list</code></em>,
|
79
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_import_string</code></em>,
|
80
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-parsing-location.html#CRParsingLocation" title="struct CRParsingLocation"><span class="type">CRParsingLocation</span></a> *a_location</code></em>);
|
81
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-media" title="cr_parser_parse_media ()">cr_parser_parse_media</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
82
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-page" title="cr_parser_parse_page ()">cr_parser_parse_page</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
83
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-prio" title="cr_parser_parse_prio ()">cr_parser_parse_prio</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
84
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_prio</code></em>);
|
85
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-ruleset" title="cr_parser_parse_ruleset ()">cr_parser_parse_ruleset</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
86
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-statement-core" title="cr_parser_parse_statement_core ()">cr_parser_parse_statement_core</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
87
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-parse-term" title="cr_parser_parse_term ()">cr_parser_parse_term</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
88
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> **a_term</code></em>);
|
89
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-set-default-sac-handler" title="cr_parser_set_default_sac_handler ()">cr_parser_set_default_sac_handler</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
90
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-set-sac-handler" title="cr_parser_set_sac_handler ()">cr_parser_set_sac_handler</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
91
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-doc-handler.html#CRDocHandler" title="struct CRDocHandler"><span class="type">CRDocHandler</span></a> *a_handler</code></em>);
|
92
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-set-tknzr" title="cr_parser_set_tknzr ()">cr_parser_set_tknzr</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
93
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> *a_tknzr</code></em>);
|
94
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-set-use-core-grammar" title="cr_parser_set_use_core_grammar ()">cr_parser_set_use_core_grammar</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
95
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_use_core_grammar</code></em>);
|
96
|
-
enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-parser.html#cr-parser-try-to-skip-spaces-and-comments" title="cr_parser_try_to_skip_spaces_and_comments ()">cr_parser_try_to_skip_spaces_and_comments</a>
|
97
|
-
(<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);
|
98
|
-
</pre>
|
99
|
-
</div>
|
100
|
-
<div class="refsect1">
|
101
|
-
<a name="libcroco-cr-parser.description"></a><h2>Description</h2>
|
102
|
-
<p>
|
103
|
-
</p>
|
104
|
-
</div>
|
105
34
|
<div class="refsect1">
|
106
|
-
<a name="libcroco-cr-parser.
|
107
|
-
<div class="
|
108
|
-
<
|
109
|
-
<
|
110
|
-
|
111
|
-
|
112
|
-
</pre>
|
113
|
-
<p>
|
114
|
-
</p>
|
115
|
-
</div>
|
116
|
-
<hr>
|
117
|
-
<div class="refsect2">
|
118
|
-
<a name="CRParserPriv"></a><h3>CRParserPriv</h3>
|
119
|
-
<pre class="programlisting">typedef struct _CRParserPriv CRParserPriv;</pre>
|
120
|
-
<p>
|
121
|
-
</p>
|
122
|
-
</div>
|
123
|
-
<hr>
|
124
|
-
<div class="refsect2">
|
125
|
-
<a name="cr-parser-destroy"></a><h3>cr_parser_destroy ()</h3>
|
126
|
-
<pre class="programlisting"><span class="returnvalue">void</span> cr_parser_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
127
|
-
<p>
|
128
|
-
Destroys the current instance
|
129
|
-
of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.
|
130
|
-
</p>
|
131
|
-
<div class="variablelist"><table border="0">
|
132
|
-
<col align="left" valign="top">
|
133
|
-
<tbody><tr>
|
134
|
-
<td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
|
135
|
-
<td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> to
|
136
|
-
destroy.</td>
|
137
|
-
</tr></tbody>
|
138
|
-
</table></div>
|
139
|
-
</div>
|
140
|
-
<hr>
|
141
|
-
<div class="refsect2">
|
142
|
-
<a name="cr-parser-get-parsing-location"></a><h3>cr_parser_get_parsing_location ()</h3>
|
143
|
-
<pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_parser_get_parsing_location (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> const *a_this</code></em>,
|
144
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-parsing-location.html#CRParsingLocation" title="struct CRParsingLocation"><span class="type">CRParsingLocation</span></a> *a_loc</code></em>);</pre>
|
145
|
-
<p>
|
146
|
-
Gets the current parsing location.
|
147
|
-
</p>
|
148
|
-
<div class="variablelist"><table border="0">
|
149
|
-
<col align="left" valign="top">
|
35
|
+
<a name="libcroco-cr-parser.functions"></a><h2>Functions</h2>
|
36
|
+
<div class="informaltable"><table width="100%" border="0">
|
37
|
+
<colgroup>
|
38
|
+
<col width="150px" class="functions_return">
|
39
|
+
<col class="functions_name">
|
40
|
+
</colgroup>
|
150
41
|
<tbody>
|
151
42
|
<tr>
|
152
|
-
<td
|
153
|
-
<
|
43
|
+
<td class="function_type">
|
44
|
+
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
45
|
+
</td>
|
46
|
+
<td class="function_name">
|
47
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-new" title="cr_parser_new ()">cr_parser_new</a> <span class="c_punctuation">()</span>
|
154
48
|
</td>
|
155
49
|
</tr>
|
156
50
|
<tr>
|
157
|
-
<td
|
158
|
-
<
|
51
|
+
<td class="function_type">
|
52
|
+
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
53
|
+
</td>
|
54
|
+
<td class="function_name">
|
55
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-new-from-buf" title="cr_parser_new_from_buf ()">cr_parser_new_from_buf</a> <span class="c_punctuation">()</span>
|
56
|
+
</td>
|
159
57
|
</tr>
|
160
58
|
<tr>
|
161
|
-
<td
|
162
|
-
<
|
163
|
-
|
59
|
+
<td class="function_type">
|
60
|
+
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
61
|
+
</td>
|
62
|
+
<td class="function_name">
|
63
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-new-from-file" title="cr_parser_new_from_file ()">cr_parser_new_from_file</a> <span class="c_punctuation">()</span>
|
64
|
+
</td>
|
164
65
|
</tr>
|
165
|
-
</tbody>
|
166
|
-
</table></div>
|
167
|
-
</div>
|
168
|
-
<hr>
|
169
|
-
<div class="refsect2">
|
170
|
-
<a name="cr-parser-get-sac-handler"></a><h3>cr_parser_get_sac_handler ()</h3>
|
171
|
-
<pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_parser_get_sac_handler (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
172
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-doc-handler.html#CRDocHandler" title="struct CRDocHandler"><span class="type">CRDocHandler</span></a> **a_handler</code></em>);</pre>
|
173
|
-
<p>
|
174
|
-
Gets the SAC document handler.
|
175
|
-
</p>
|
176
|
-
<div class="variablelist"><table border="0">
|
177
|
-
<col align="left" valign="top">
|
178
|
-
<tbody>
|
179
66
|
<tr>
|
180
|
-
<td
|
181
|
-
<
|
182
|
-
|
67
|
+
<td class="function_type">
|
68
|
+
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
69
|
+
</td>
|
70
|
+
<td class="function_name">
|
71
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-new-from-input" title="cr_parser_new_from_input ()">cr_parser_new_from_input</a> <span class="c_punctuation">()</span>
|
72
|
+
</td>
|
183
73
|
</tr>
|
184
74
|
<tr>
|
185
|
-
<td
|
186
|
-
|
75
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
76
|
+
</td>
|
77
|
+
<td class="function_name">
|
78
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-set-tknzr" title="cr_parser_set_tknzr ()">cr_parser_set_tknzr</a> <span class="c_punctuation">()</span>
|
79
|
+
</td>
|
187
80
|
</tr>
|
188
81
|
<tr>
|
189
|
-
<td
|
190
|
-
|
191
|
-
|
82
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
83
|
+
</td>
|
84
|
+
<td class="function_name">
|
85
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-get-tknzr" title="cr_parser_get_tknzr ()">cr_parser_get_tknzr</a> <span class="c_punctuation">()</span>
|
86
|
+
</td>
|
192
87
|
</tr>
|
193
|
-
</tbody>
|
194
|
-
</table></div>
|
195
|
-
</div>
|
196
|
-
<hr>
|
197
|
-
<div class="refsect2">
|
198
|
-
<a name="cr-parser-get-tknzr"></a><h3>cr_parser_get_tknzr ()</h3>
|
199
|
-
<pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_parser_get_tknzr (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
200
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> **a_tknzr</code></em>);</pre>
|
201
|
-
<p>
|
202
|
-
Getter of the parser's underlying tokenizer
|
203
|
-
</p>
|
204
|
-
<div class="variablelist"><table border="0">
|
205
|
-
<col align="left" valign="top">
|
206
|
-
<tbody>
|
207
88
|
<tr>
|
208
|
-
<td
|
209
|
-
|
89
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
90
|
+
</td>
|
91
|
+
<td class="function_name">
|
92
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-get-parsing-location" title="cr_parser_get_parsing_location ()">cr_parser_get_parsing_location</a> <span class="c_punctuation">()</span>
|
210
93
|
</td>
|
211
94
|
</tr>
|
212
95
|
<tr>
|
213
|
-
<td
|
214
|
-
|
96
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
97
|
+
</td>
|
98
|
+
<td class="function_name">
|
99
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-try-to-skip-spaces-and-comments" title="cr_parser_try_to_skip_spaces_and_comments ()">cr_parser_try_to_skip_spaces_and_comments</a> <span class="c_punctuation">()</span>
|
100
|
+
</td>
|
215
101
|
</tr>
|
216
102
|
<tr>
|
217
|
-
<td
|
218
|
-
|
219
|
-
|
103
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
104
|
+
</td>
|
105
|
+
<td class="function_name">
|
106
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-set-sac-handler" title="cr_parser_set_sac_handler ()">cr_parser_set_sac_handler</a> <span class="c_punctuation">()</span>
|
107
|
+
</td>
|
220
108
|
</tr>
|
221
|
-
</tbody>
|
222
|
-
</table></div>
|
223
|
-
</div>
|
224
|
-
<hr>
|
225
|
-
<div class="refsect2">
|
226
|
-
<a name="cr-parser-get-use-core-grammar"></a><h3>cr_parser_get_use_core_grammar ()</h3>
|
227
|
-
<pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_parser_get_use_core_grammar (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> const *a_this</code></em>,
|
228
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *a_use_core_grammar</code></em>);</pre>
|
229
|
-
<div class="variablelist"><table border="0">
|
230
|
-
<col align="left" valign="top">
|
231
|
-
<tbody>
|
232
109
|
<tr>
|
233
|
-
<td
|
234
|
-
|
110
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
111
|
+
</td>
|
112
|
+
<td class="function_name">
|
113
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-get-sac-handler" title="cr_parser_get_sac_handler ()">cr_parser_get_sac_handler</a> <span class="c_punctuation">()</span>
|
114
|
+
</td>
|
235
115
|
</tr>
|
236
116
|
<tr>
|
237
|
-
<td
|
238
|
-
|
117
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
118
|
+
</td>
|
119
|
+
<td class="function_name">
|
120
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-set-use-core-grammar" title="cr_parser_set_use_core_grammar ()">cr_parser_set_use_core_grammar</a> <span class="c_punctuation">()</span>
|
121
|
+
</td>
|
239
122
|
</tr>
|
240
123
|
<tr>
|
241
|
-
<td
|
242
|
-
|
124
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
125
|
+
</td>
|
126
|
+
<td class="function_name">
|
127
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-get-use-core-grammar" title="cr_parser_get_use_core_grammar ()">cr_parser_get_use_core_grammar</a> <span class="c_punctuation">()</span>
|
128
|
+
</td>
|
243
129
|
</tr>
|
244
|
-
</tbody>
|
245
|
-
</table></div>
|
246
|
-
</div>
|
247
|
-
<hr>
|
248
|
-
<div class="refsect2">
|
249
|
-
<a name="cr-parser-new"></a><h3>cr_parser_new ()</h3>
|
250
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * cr_parser_new (<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> *a_tknzr</code></em>);</pre>
|
251
|
-
<p>
|
252
|
-
Creates a new parser to parse data
|
253
|
-
coming the input stream given in parameter.
|
254
|
-
</p>
|
255
|
-
<div class="variablelist"><table border="0">
|
256
|
-
<col align="left" valign="top">
|
257
|
-
<tbody>
|
258
130
|
<tr>
|
259
|
-
<td
|
260
|
-
|
131
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
132
|
+
</td>
|
133
|
+
<td class="function_name">
|
134
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse" title="cr_parser_parse ()">cr_parser_parse</a> <span class="c_punctuation">()</span>
|
135
|
+
</td>
|
261
136
|
</tr>
|
262
137
|
<tr>
|
263
|
-
<td
|
264
|
-
|
265
|
-
|
138
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
139
|
+
</td>
|
140
|
+
<td class="function_name">
|
141
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-file" title="cr_parser_parse_file ()">cr_parser_parse_file</a> <span class="c_punctuation">()</span>
|
142
|
+
</td>
|
266
143
|
</tr>
|
267
|
-
</tbody>
|
268
|
-
</table></div>
|
269
|
-
</div>
|
270
|
-
<hr>
|
271
|
-
<div class="refsect2">
|
272
|
-
<a name="cr-parser-new-from-buf"></a><h3>cr_parser_new_from_buf ()</h3>
|
273
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * cr_parser_new_from_buf (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
|
274
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_len</code></em>,
|
275
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>,
|
276
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_free_buf</code></em>);</pre>
|
277
|
-
<p>
|
278
|
-
Instanciates a new parser from a memory buffer.
|
279
|
-
</p>
|
280
|
-
<div class="variablelist"><table border="0">
|
281
|
-
<col align="left" valign="top">
|
282
|
-
<tbody>
|
283
144
|
<tr>
|
284
|
-
<td
|
285
|
-
|
145
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
146
|
+
</td>
|
147
|
+
<td class="function_name">
|
148
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-buf" title="cr_parser_parse_buf ()">cr_parser_parse_buf</a> <span class="c_punctuation">()</span>
|
149
|
+
</td>
|
286
150
|
</tr>
|
287
151
|
<tr>
|
288
|
-
<td
|
289
|
-
|
152
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
153
|
+
</td>
|
154
|
+
<td class="function_name">
|
155
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-set-default-sac-handler" title="cr_parser_set_default_sac_handler ()">cr_parser_set_default_sac_handler</a> <span class="c_punctuation">()</span>
|
156
|
+
</td>
|
290
157
|
</tr>
|
291
158
|
<tr>
|
292
|
-
<td
|
293
|
-
|
159
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
160
|
+
</td>
|
161
|
+
<td class="function_name">
|
162
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-term" title="cr_parser_parse_term ()">cr_parser_parse_term</a> <span class="c_punctuation">()</span>
|
163
|
+
</td>
|
294
164
|
</tr>
|
295
165
|
<tr>
|
296
|
-
<td
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
166
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
167
|
+
</td>
|
168
|
+
<td class="function_name">
|
169
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-expr" title="cr_parser_parse_expr ()">cr_parser_parse_expr</a> <span class="c_punctuation">()</span>
|
170
|
+
</td>
|
301
171
|
</tr>
|
302
172
|
<tr>
|
303
|
-
<td
|
304
|
-
|
173
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
174
|
+
</td>
|
175
|
+
<td class="function_name">
|
176
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-prio" title="cr_parser_parse_prio ()">cr_parser_parse_prio</a> <span class="c_punctuation">()</span>
|
177
|
+
</td>
|
178
|
+
</tr>
|
179
|
+
<tr>
|
180
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
181
|
+
</td>
|
182
|
+
<td class="function_name">
|
183
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-declaration" title="cr_parser_parse_declaration ()">cr_parser_parse_declaration</a> <span class="c_punctuation">()</span>
|
184
|
+
</td>
|
185
|
+
</tr>
|
186
|
+
<tr>
|
187
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
188
|
+
</td>
|
189
|
+
<td class="function_name">
|
190
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-statement-core" title="cr_parser_parse_statement_core ()">cr_parser_parse_statement_core</a> <span class="c_punctuation">()</span>
|
191
|
+
</td>
|
305
192
|
</tr>
|
306
|
-
</tbody>
|
307
|
-
</table></div>
|
308
|
-
</div>
|
309
|
-
<hr>
|
310
|
-
<div class="refsect2">
|
311
|
-
<a name="cr-parser-new-from-file"></a><h3>cr_parser_new_from_file ()</h3>
|
312
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * cr_parser_new_from_file (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_file_uri</code></em>,
|
313
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
|
314
|
-
<div class="variablelist"><table border="0">
|
315
|
-
<col align="left" valign="top">
|
316
|
-
<tbody>
|
317
193
|
<tr>
|
318
|
-
<td
|
319
|
-
|
194
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
195
|
+
</td>
|
196
|
+
<td class="function_name">
|
197
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-ruleset" title="cr_parser_parse_ruleset ()">cr_parser_parse_ruleset</a> <span class="c_punctuation">()</span>
|
198
|
+
</td>
|
320
199
|
</tr>
|
321
200
|
<tr>
|
322
|
-
<td
|
323
|
-
|
201
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
202
|
+
</td>
|
203
|
+
<td class="function_name">
|
204
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-import" title="cr_parser_parse_import ()">cr_parser_parse_import</a> <span class="c_punctuation">()</span>
|
205
|
+
</td>
|
324
206
|
</tr>
|
325
207
|
<tr>
|
326
|
-
<td
|
327
|
-
|
208
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
209
|
+
</td>
|
210
|
+
<td class="function_name">
|
211
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-media" title="cr_parser_parse_media ()">cr_parser_parse_media</a> <span class="c_punctuation">()</span>
|
212
|
+
</td>
|
328
213
|
</tr>
|
329
|
-
</tbody>
|
330
|
-
</table></div>
|
331
|
-
</div>
|
332
|
-
<hr>
|
333
|
-
<div class="refsect2">
|
334
|
-
<a name="cr-parser-new-from-input"></a><h3>cr_parser_new_from_input ()</h3>
|
335
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> * cr_parser_new_from_input (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_input</code></em>);</pre>
|
336
|
-
<div class="variablelist"><table border="0">
|
337
|
-
<col align="left" valign="top">
|
338
|
-
<tbody>
|
339
214
|
<tr>
|
340
|
-
<td
|
341
|
-
|
215
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
216
|
+
</td>
|
217
|
+
<td class="function_name">
|
218
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-page" title="cr_parser_parse_page ()">cr_parser_parse_page</a> <span class="c_punctuation">()</span>
|
219
|
+
</td>
|
342
220
|
</tr>
|
343
221
|
<tr>
|
344
|
-
<td
|
345
|
-
|
222
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
223
|
+
</td>
|
224
|
+
<td class="function_name">
|
225
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-charset" title="cr_parser_parse_charset ()">cr_parser_parse_charset</a> <span class="c_punctuation">()</span>
|
226
|
+
</td>
|
227
|
+
</tr>
|
228
|
+
<tr>
|
229
|
+
<td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
230
|
+
</td>
|
231
|
+
<td class="function_name">
|
232
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-parse-font-face" title="cr_parser_parse_font_face ()">cr_parser_parse_font_face</a> <span class="c_punctuation">()</span>
|
233
|
+
</td>
|
234
|
+
</tr>
|
235
|
+
<tr>
|
236
|
+
<td class="function_type">
|
237
|
+
<span class="returnvalue">void</span>
|
238
|
+
</td>
|
239
|
+
<td class="function_name">
|
240
|
+
<a class="link" href="libcroco-cr-parser.html#cr-parser-destroy" title="cr_parser_destroy ()">cr_parser_destroy</a> <span class="c_punctuation">()</span>
|
241
|
+
</td>
|
346
242
|
</tr>
|
347
243
|
</tbody>
|
348
244
|
</table></div>
|
349
245
|
</div>
|
350
|
-
<
|
351
|
-
<
|
352
|
-
<
|
353
|
-
<
|
354
|
-
<
|
355
|
-
|
356
|
-
|
357
|
-
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.
|
358
|
-
</p>
|
359
|
-
<div class="variablelist"><table border="0">
|
360
|
-
<col align="left" valign="top">
|
246
|
+
<div class="refsect1">
|
247
|
+
<a name="libcroco-cr-parser.other"></a><h2>Types and Values</h2>
|
248
|
+
<div class="informaltable"><table width="100%" border="0">
|
249
|
+
<colgroup>
|
250
|
+
<col width="150px" class="name">
|
251
|
+
<col class="description">
|
252
|
+
</colgroup>
|
361
253
|
<tbody>
|
362
254
|
<tr>
|
363
|
-
<td
|
364
|
-
<td
|
255
|
+
<td class="datatype_keyword">struct</td>
|
256
|
+
<td class="function_name"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser">CRParser</a></td>
|
365
257
|
</tr>
|
366
258
|
<tr>
|
367
|
-
<td
|
368
|
-
<td
|
259
|
+
<td class="datatype_keyword"> </td>
|
260
|
+
<td class="function_name"><a class="link" href="libcroco-cr-parser.html#CRParserPriv" title="CRParserPriv">CRParserPriv</a></td>
|
369
261
|
</tr>
|
370
262
|
</tbody>
|
371
263
|
</table></div>
|
372
264
|
</div>
|
265
|
+
<div class="refsect1">
|
266
|
+
<a name="libcroco-cr-parser.description"></a><h2>Description</h2>
|
267
|
+
</div>
|
268
|
+
<div class="refsect1">
|
269
|
+
<a name="libcroco-cr-parser.functions_details"></a><h2>Functions</h2>
|
270
|
+
<div class="refsect2">
|
271
|
+
<a name="cr-parser-new"></a><h3>cr_parser_new ()</h3>
|
272
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
273
|
+
cr_parser_new (<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> *a_tknzr</code></em>);</pre>
|
274
|
+
<p>Creates a new parser to parse data
|
275
|
+
coming the input stream given in parameter.</p>
|
276
|
+
<p>Returns the newly created instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>,
|
277
|
+
or NULL if an error occured.</p>
|
278
|
+
<div class="refsect3">
|
279
|
+
<a name="id-1.2.12.6.2.6"></a><h4>Parameters</h4>
|
280
|
+
<div class="informaltable"><table width="100%" border="0">
|
281
|
+
<colgroup>
|
282
|
+
<col width="150px" class="parameters_name">
|
283
|
+
<col class="parameters_description">
|
284
|
+
<col width="200px" class="parameters_annotations">
|
285
|
+
</colgroup>
|
286
|
+
<tbody><tr>
|
287
|
+
<td class="parameter_name"><p>a_tknzr</p></td>
|
288
|
+
<td class="parameter_description"><p>the tokenizer to use for the parsing.</p></td>
|
289
|
+
<td class="parameter_annotations"> </td>
|
290
|
+
</tr></tbody>
|
291
|
+
</table></div>
|
292
|
+
</div>
|
293
|
+
</div>
|
373
294
|
<hr>
|
374
295
|
<div class="refsect2">
|
375
|
-
<a name="cr-parser-
|
376
|
-
<pre class="programlisting"
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
<
|
381
|
-
|
382
|
-
|
383
|
-
<div class="
|
384
|
-
<
|
296
|
+
<a name="cr-parser-new-from-buf"></a><h3>cr_parser_new_from_buf ()</h3>
|
297
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
298
|
+
cr_parser_new_from_buf (<em class="parameter"><code><span class="type">guchar</span> *a_buf</code></em>,
|
299
|
+
<em class="parameter"><code><span class="type">gulong</span> a_len</code></em>,
|
300
|
+
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>,
|
301
|
+
<em class="parameter"><code><span class="type">gboolean</span> a_free_buf</code></em>);</pre>
|
302
|
+
<p>Instanciates a new parser from a memory buffer.</p>
|
303
|
+
<p>Returns the newly built parser, or NULL if an error arises.</p>
|
304
|
+
<div class="refsect3">
|
305
|
+
<a name="id-1.2.12.6.3.6"></a><h4>Parameters</h4>
|
306
|
+
<div class="informaltable"><table width="100%" border="0">
|
307
|
+
<colgroup>
|
308
|
+
<col width="150px" class="parameters_name">
|
309
|
+
<col class="parameters_description">
|
310
|
+
<col width="200px" class="parameters_annotations">
|
311
|
+
</colgroup>
|
385
312
|
<tbody>
|
386
313
|
<tr>
|
387
|
-
<td
|
388
|
-
<td
|
389
|
-
</td>
|
314
|
+
<td class="parameter_name"><p>a_buf</p></td>
|
315
|
+
<td class="parameter_description"><p>the buffer to parse.</p></td>
|
316
|
+
<td class="parameter_annotations"> </td>
|
390
317
|
</tr>
|
391
318
|
<tr>
|
392
|
-
<td
|
393
|
-
<td>the
|
319
|
+
<td class="parameter_name"><p>a_len</p></td>
|
320
|
+
<td class="parameter_description"><p>the length of the data in the buffer.</p></td>
|
321
|
+
<td class="parameter_annotations"> </td>
|
394
322
|
</tr>
|
395
323
|
<tr>
|
396
|
-
<td
|
397
|
-
<td>the
|
324
|
+
<td class="parameter_name"><p>a_enc</p></td>
|
325
|
+
<td class="parameter_description"><p>the encoding of the input buffer a_buf.</p></td>
|
326
|
+
<td class="parameter_annotations"> </td>
|
398
327
|
</tr>
|
399
328
|
<tr>
|
400
|
-
<td
|
401
|
-
<td>
|
402
|
-
|
403
|
-
<
|
404
|
-
|
405
|
-
<td>
|
329
|
+
<td class="parameter_name"><p>a_free_buf</p></td>
|
330
|
+
<td class="parameter_description"><p>if set to TRUE, a_buf will be freed
|
331
|
+
during the destruction of the newly built instance
|
332
|
+
of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>. If set to FALSE, it is up to the caller to
|
333
|
+
eventually free it.</p></td>
|
334
|
+
<td class="parameter_annotations"> </td>
|
406
335
|
</tr>
|
407
336
|
</tbody>
|
408
337
|
</table></div>
|
409
338
|
</div>
|
339
|
+
</div>
|
410
340
|
<hr>
|
411
341
|
<div class="refsect2">
|
412
|
-
<a name="cr-parser-
|
413
|
-
<pre class="programlisting"
|
414
|
-
|
415
|
-
|
416
|
-
<p>
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
<
|
422
|
-
<col
|
342
|
+
<a name="cr-parser-new-from-file"></a><h3>cr_parser_new_from_file ()</h3>
|
343
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
344
|
+
cr_parser_new_from_file (<em class="parameter"><code>const <span class="type">guchar</span> *a_file_uri</code></em>,
|
345
|
+
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
|
346
|
+
<p>Returns the newly built parser.</p>
|
347
|
+
<div class="refsect3">
|
348
|
+
<a name="id-1.2.12.6.4.5"></a><h4>Parameters</h4>
|
349
|
+
<div class="informaltable"><table width="100%" border="0">
|
350
|
+
<colgroup>
|
351
|
+
<col width="150px" class="parameters_name">
|
352
|
+
<col class="parameters_description">
|
353
|
+
<col width="200px" class="parameters_annotations">
|
354
|
+
</colgroup>
|
423
355
|
<tbody>
|
424
356
|
<tr>
|
425
|
-
<td
|
426
|
-
<td
|
427
|
-
</
|
428
|
-
<tr>
|
429
|
-
<td><p><span class="term"><em class="parameter"><code>a_value</code></em> :</span></p></td>
|
430
|
-
<td>out parameter. The actual parsed value of the charset
|
431
|
-
declararation. Note that for safety check reasons, *a_value must be
|
432
|
-
set to NULL.</td>
|
433
|
-
</tr>
|
434
|
-
<tr>
|
435
|
-
<td><p><span class="term"><em class="parameter"><code>a_charset_sym_location</code></em> :</span></p></td>
|
436
|
-
<td>the parsing location of the charset rule</td>
|
357
|
+
<td class="parameter_name"><p>a_file_uri</p></td>
|
358
|
+
<td class="parameter_description"><p>the uri of the file to parse.</p></td>
|
359
|
+
<td class="parameter_annotations"> </td>
|
437
360
|
</tr>
|
438
361
|
<tr>
|
439
|
-
<td
|
440
|
-
<td>
|
362
|
+
<td class="parameter_name"><p>a_enc</p></td>
|
363
|
+
<td class="parameter_description"><p>the file encoding to use.</p></td>
|
364
|
+
<td class="parameter_annotations"> </td>
|
441
365
|
</tr>
|
442
366
|
</tbody>
|
443
367
|
</table></div>
|
444
368
|
</div>
|
369
|
+
</div>
|
445
370
|
<hr>
|
446
371
|
<div class="refsect2">
|
447
|
-
<a name="cr-parser-
|
448
|
-
<pre class="programlisting"
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
<
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
<
|
372
|
+
<a name="cr-parser-new-from-input"></a><h3>cr_parser_new_from_input ()</h3>
|
373
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="returnvalue">CRParser</span></a> *
|
374
|
+
cr_parser_new_from_input (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_input</code></em>);</pre>
|
375
|
+
<p>Returns a newly built parser input.</p>
|
376
|
+
<div class="refsect3">
|
377
|
+
<a name="id-1.2.12.6.5.5"></a><h4>Parameters</h4>
|
378
|
+
<div class="informaltable"><table width="100%" border="0">
|
379
|
+
<colgroup>
|
380
|
+
<col width="150px" class="parameters_name">
|
381
|
+
<col class="parameters_description">
|
382
|
+
<col width="200px" class="parameters_annotations">
|
383
|
+
</colgroup>
|
384
|
+
<tbody><tr>
|
385
|
+
<td class="parameter_name"><p>a_input</p></td>
|
386
|
+
<td class="parameter_description"><p>the parser input stream to use.</p></td>
|
387
|
+
<td class="parameter_annotations"> </td>
|
388
|
+
</tr></tbody>
|
389
|
+
</table></div>
|
390
|
+
</div>
|
391
|
+
</div>
|
392
|
+
<hr>
|
393
|
+
<div class="refsect2">
|
394
|
+
<a name="cr-parser-set-tknzr"></a><h3>cr_parser_set_tknzr ()</h3>
|
395
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
396
|
+
cr_parser_set_tknzr (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
397
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> *a_tknzr</code></em>);</pre>
|
398
|
+
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
|
399
|
+
<div class="refsect3">
|
400
|
+
<a name="id-1.2.12.6.6.5"></a><h4>Parameters</h4>
|
401
|
+
<div class="informaltable"><table width="100%" border="0">
|
402
|
+
<colgroup>
|
403
|
+
<col width="150px" class="parameters_name">
|
404
|
+
<col class="parameters_description">
|
405
|
+
<col width="200px" class="parameters_annotations">
|
406
|
+
</colgroup>
|
460
407
|
<tbody>
|
461
408
|
<tr>
|
462
|
-
<td
|
463
|
-
<td
|
464
|
-
</
|
465
|
-
<tr>
|
466
|
-
<td><p><span class="term"><em class="parameter"><code>a_property</code></em> :</span></p></td>
|
467
|
-
<td>the successfully parsed property. The caller
|
468
|
-
*must* free the returned pointer.</td>
|
409
|
+
<td class="parameter_name"><p>a_this</p></td>
|
410
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>;</p></td>
|
411
|
+
<td class="parameter_annotations"> </td>
|
469
412
|
</tr>
|
470
413
|
<tr>
|
471
|
-
<td
|
472
|
-
<td>the
|
473
|
-
|
474
|
-
</tr>
|
475
|
-
<tr>
|
476
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
477
|
-
<td>CR_OK upon successfull completion, an error code otherwise.</td>
|
414
|
+
<td class="parameter_name"><p>a_tknzr</p></td>
|
415
|
+
<td class="parameter_description"><p>the new tokenizer.</p></td>
|
416
|
+
<td class="parameter_annotations"> </td>
|
478
417
|
</tr>
|
479
418
|
</tbody>
|
480
419
|
</table></div>
|
481
420
|
</div>
|
421
|
+
</div>
|
482
422
|
<hr>
|
483
423
|
<div class="refsect2">
|
484
|
-
<a name="cr-parser-
|
485
|
-
<pre class="programlisting">enum <
|
486
|
-
|
487
|
-
<
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
<
|
493
|
-
<
|
424
|
+
<a name="cr-parser-get-tknzr"></a><h3>cr_parser_get_tknzr ()</h3>
|
425
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
426
|
+
cr_parser_get_tknzr (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
427
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-tknzr.html#CRTknzr" title="struct CRTknzr"><span class="type">CRTknzr</span></a> **a_tknzr</code></em>);</pre>
|
428
|
+
<p>Getter of the parser's underlying tokenizer</p>
|
429
|
+
<p>Returns CR_OK upon succesful completion, an error code
|
430
|
+
otherwise</p>
|
431
|
+
<div class="refsect3">
|
432
|
+
<a name="id-1.2.12.6.7.6"></a><h4>Parameters</h4>
|
433
|
+
<div class="informaltable"><table width="100%" border="0">
|
434
|
+
<colgroup>
|
435
|
+
<col width="150px" class="parameters_name">
|
436
|
+
<col class="parameters_description">
|
437
|
+
<col width="200px" class="parameters_annotations">
|
438
|
+
</colgroup>
|
494
439
|
<tbody>
|
495
440
|
<tr>
|
496
|
-
<td
|
497
|
-
<td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a
|
498
|
-
</
|
499
|
-
<tr>
|
500
|
-
<td><p><span class="term"><em class="parameter"><code>a_expr</code></em> :</span></p></td>
|
501
|
-
<td>out parameter. the parsed expression.</td>
|
441
|
+
<td class="parameter_name"><p>a_this</p></td>
|
442
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a></p></td>
|
443
|
+
<td class="parameter_annotations"> </td>
|
502
444
|
</tr>
|
503
445
|
<tr>
|
504
|
-
<td
|
505
|
-
<td>
|
446
|
+
<td class="parameter_name"><p>a_tknzr</p></td>
|
447
|
+
<td class="parameter_description"><p>out parameter. The returned tokenizer</p></td>
|
448
|
+
<td class="parameter_annotations"> </td>
|
506
449
|
</tr>
|
507
450
|
</tbody>
|
508
451
|
</table></div>
|
509
452
|
</div>
|
453
|
+
</div>
|
510
454
|
<hr>
|
511
455
|
<div class="refsect2">
|
512
|
-
<a name="cr-parser-
|
513
|
-
<pre class="programlisting">enum <
|
514
|
-
|
515
|
-
|
516
|
-
<p>
|
517
|
-
|
518
|
-
|
519
|
-
<div class="
|
520
|
-
<
|
456
|
+
<a name="cr-parser-get-parsing-location"></a><h3>cr_parser_get_parsing_location ()</h3>
|
457
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
458
|
+
cr_parser_get_parsing_location (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> const *a_this</code></em>,
|
459
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-parsing-location.html#CRParsingLocation" title="struct CRParsingLocation"><span class="type">CRParsingLocation</span></a> *a_loc</code></em>);</pre>
|
460
|
+
<p>Gets the current parsing location.</p>
|
461
|
+
<p>Returns CR_OK upon succesful completion, an error code
|
462
|
+
otherwise.</p>
|
463
|
+
<div class="refsect3">
|
464
|
+
<a name="id-1.2.12.6.8.6"></a><h4>Parameters</h4>
|
465
|
+
<div class="informaltable"><table width="100%" border="0">
|
466
|
+
<colgroup>
|
467
|
+
<col width="150px" class="parameters_name">
|
468
|
+
<col class="parameters_description">
|
469
|
+
<col width="200px" class="parameters_annotations">
|
470
|
+
</colgroup>
|
521
471
|
<tbody>
|
522
472
|
<tr>
|
523
|
-
<td
|
524
|
-
<td>
|
473
|
+
<td class="parameter_name"><p>a_this</p></td>
|
474
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a></p></td>
|
475
|
+
<td class="parameter_annotations"> </td>
|
525
476
|
</tr>
|
526
477
|
<tr>
|
527
|
-
<td
|
528
|
-
<td>the
|
529
|
-
</
|
530
|
-
<tr>
|
531
|
-
<td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
|
532
|
-
<td>the encoding of the file to parse.
|
533
|
-
only local files are supported.</td>
|
534
|
-
</tr>
|
535
|
-
<tr>
|
536
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
537
|
-
<td>CR_OK upon successfull completion, an error code otherwise.</td>
|
478
|
+
<td class="parameter_name"><p>a_loc</p></td>
|
479
|
+
<td class="parameter_description"><p>the parsing location to get.</p></td>
|
480
|
+
<td class="parameter_annotations"> </td>
|
538
481
|
</tr>
|
539
482
|
</tbody>
|
540
483
|
</table></div>
|
541
484
|
</div>
|
485
|
+
</div>
|
542
486
|
<hr>
|
543
487
|
<div class="refsect2">
|
544
|
-
<a name="cr-parser-
|
545
|
-
<pre class="programlisting">enum <
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
<p>
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
<
|
555
|
-
|
556
|
-
|
557
|
-
<
|
558
|
-
|
488
|
+
<a name="cr-parser-try-to-skip-spaces-and-comments"></a><h3>cr_parser_try_to_skip_spaces_and_comments ()</h3>
|
489
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
490
|
+
cr_parser_try_to_skip_spaces_and_comments
|
491
|
+
(<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
492
|
+
<p>Same as <code class="function">cr_parser_try_to_skip_spaces()</code> but this one skips
|
493
|
+
spaces and comments.</p>
|
494
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
495
|
+
<div class="refsect3">
|
496
|
+
<a name="id-1.2.12.6.9.6"></a><h4>Parameters</h4>
|
497
|
+
<div class="informaltable"><table width="100%" border="0">
|
498
|
+
<colgroup>
|
499
|
+
<col width="150px" class="parameters_name">
|
500
|
+
<col class="parameters_description">
|
501
|
+
<col width="200px" class="parameters_annotations">
|
502
|
+
</colgroup>
|
503
|
+
<tbody><tr>
|
504
|
+
<td class="parameter_name"><p>a_this</p></td>
|
505
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
506
|
+
<td class="parameter_annotations"> </td>
|
507
|
+
</tr></tbody>
|
508
|
+
</table></div>
|
509
|
+
</div>
|
510
|
+
</div>
|
511
|
+
<hr>
|
512
|
+
<div class="refsect2">
|
513
|
+
<a name="cr-parser-set-sac-handler"></a><h3>cr_parser_set_sac_handler ()</h3>
|
514
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
515
|
+
cr_parser_set_sac_handler (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
516
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-doc-handler.html#CRDocHandler" title="struct CRDocHandler"><span class="type">CRDocHandler</span></a> *a_handler</code></em>);</pre>
|
517
|
+
<p>Sets a SAC document handler to the parser.</p>
|
518
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
519
|
+
<div class="refsect3">
|
520
|
+
<a name="id-1.2.12.6.10.6"></a><h4>Parameters</h4>
|
521
|
+
<div class="informaltable"><table width="100%" border="0">
|
522
|
+
<colgroup>
|
523
|
+
<col width="150px" class="parameters_name">
|
524
|
+
<col class="parameters_description">
|
525
|
+
<col width="200px" class="parameters_annotations">
|
526
|
+
</colgroup>
|
559
527
|
<tbody>
|
560
528
|
<tr>
|
561
|
-
<td
|
562
|
-
<td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
|
529
|
+
<td class="parameter_name"><p>a_this</p></td>
|
530
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
531
|
+
<td class="parameter_annotations"> </td>
|
563
532
|
</tr>
|
564
533
|
<tr>
|
565
|
-
<td
|
566
|
-
<td>
|
534
|
+
<td class="parameter_name"><p>a_handler</p></td>
|
535
|
+
<td class="parameter_description"><p>the handler to set.</p></td>
|
536
|
+
<td class="parameter_annotations"> </td>
|
567
537
|
</tr>
|
568
538
|
</tbody>
|
569
539
|
</table></div>
|
570
540
|
</div>
|
541
|
+
</div>
|
571
542
|
<hr>
|
572
543
|
<div class="refsect2">
|
573
|
-
<a name="cr-parser-
|
574
|
-
<pre class="programlisting">enum <
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
<p>
|
579
|
-
|
580
|
-
|
581
|
-
</
|
582
|
-
<
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
<
|
587
|
-
|
544
|
+
<a name="cr-parser-get-sac-handler"></a><h3>cr_parser_get_sac_handler ()</h3>
|
545
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
546
|
+
cr_parser_get_sac_handler (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
547
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-doc-handler.html#CRDocHandler" title="struct CRDocHandler"><span class="type">CRDocHandler</span></a> **a_handler</code></em>);</pre>
|
548
|
+
<p>Gets the SAC document handler.</p>
|
549
|
+
<p>Returns CR_OK upon successfull completion, an error code
|
550
|
+
otherwise.</p>
|
551
|
+
<div class="refsect3">
|
552
|
+
<a name="id-1.2.12.6.11.6"></a><h4>Parameters</h4>
|
553
|
+
<div class="informaltable"><table width="100%" border="0">
|
554
|
+
<colgroup>
|
555
|
+
<col width="150px" class="parameters_name">
|
556
|
+
<col class="parameters_description">
|
557
|
+
<col width="200px" class="parameters_annotations">
|
558
|
+
</colgroup>
|
588
559
|
<tbody>
|
589
560
|
<tr>
|
590
|
-
<td
|
591
|
-
<td>the "this pointer" of the current instance
|
592
|
-
|
561
|
+
<td class="parameter_name"><p>a_this</p></td>
|
562
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance of
|
563
|
+
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
564
|
+
<td class="parameter_annotations"> </td>
|
593
565
|
</tr>
|
594
566
|
<tr>
|
595
|
-
<td
|
596
|
-
<td>out parameter.
|
597
|
-
<
|
598
|
-
Each CRString is a string that contains
|
599
|
-
a 'medium' declaration part of the successfully
|
600
|
-
parsed 'import' declaration.</td>
|
601
|
-
</tr>
|
602
|
-
<tr>
|
603
|
-
<td><p><span class="term"><em class="parameter"><code>a_import_string</code></em> :</span></p></td>
|
604
|
-
<td>out parameter.
|
605
|
-
A string that contains the 'import
|
606
|
-
string". The import string can be either an uri (if it starts with
|
607
|
-
the substring "uri(") or a any other css2 string. Note that
|
608
|
-
*a_import_string must be initially set to NULL or else, this function
|
609
|
-
will return CR_BAD_PARAM_ERROR.</td>
|
610
|
-
</tr>
|
611
|
-
<tr>
|
612
|
-
<td><p><span class="term"><em class="parameter"><code>a_location</code></em> :</span></p></td>
|
613
|
-
<td>the location (line, column) where the import has been parsed</td>
|
614
|
-
</tr>
|
615
|
-
<tr>
|
616
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
617
|
-
<td>CR_OK upon sucessfull completion, an error code otherwise.</td>
|
567
|
+
<td class="parameter_name"><p>a_handler</p></td>
|
568
|
+
<td class="parameter_description"><p>out parameter. The returned handler.</p></td>
|
569
|
+
<td class="parameter_annotations"> </td>
|
618
570
|
</tr>
|
619
571
|
</tbody>
|
620
572
|
</table></div>
|
621
573
|
</div>
|
574
|
+
</div>
|
622
575
|
<hr>
|
623
576
|
<div class="refsect2">
|
624
|
-
<a name="cr-parser-
|
625
|
-
<pre class="programlisting">enum <
|
626
|
-
<
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
<
|
631
|
-
|
632
|
-
|
633
|
-
<
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
</p>
|
638
|
-
<div class="variablelist"><table border="0">
|
639
|
-
<col align="left" valign="top">
|
577
|
+
<a name="cr-parser-set-use-core-grammar"></a><h3>cr_parser_set_use_core_grammar ()</h3>
|
578
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
579
|
+
cr_parser_set_use_core_grammar (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
580
|
+
<em class="parameter"><code><span class="type">gboolean</span> a_use_core_grammar</code></em>);</pre>
|
581
|
+
<p>Returns CR_OK upon succesful completion, an error code otherwise.</p>
|
582
|
+
<div class="refsect3">
|
583
|
+
<a name="id-1.2.12.6.12.5"></a><h4>Parameters</h4>
|
584
|
+
<div class="informaltable"><table width="100%" border="0">
|
585
|
+
<colgroup>
|
586
|
+
<col width="150px" class="parameters_name">
|
587
|
+
<col class="parameters_description">
|
588
|
+
<col width="200px" class="parameters_annotations">
|
589
|
+
</colgroup>
|
640
590
|
<tbody>
|
641
591
|
<tr>
|
642
|
-
<td
|
643
|
-
<td
|
592
|
+
<td class="parameter_name"><p>a_this</p></td>
|
593
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
594
|
+
<td class="parameter_annotations"> </td>
|
644
595
|
</tr>
|
645
596
|
<tr>
|
646
|
-
<td
|
647
|
-
<td>
|
597
|
+
<td class="parameter_name"><p>a_use_core_grammar</p></td>
|
598
|
+
<td class="parameter_description"><p>where to parse against the css core grammar.</p></td>
|
599
|
+
<td class="parameter_annotations"> </td>
|
648
600
|
</tr>
|
649
601
|
</tbody>
|
650
602
|
</table></div>
|
651
603
|
</div>
|
604
|
+
</div>
|
652
605
|
<hr>
|
653
606
|
<div class="refsect2">
|
654
|
-
<a name="cr-parser-
|
655
|
-
<pre class="programlisting">enum <
|
656
|
-
<
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
</
|
661
|
-
<
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
<col align="left" valign="top">
|
607
|
+
<a name="cr-parser-get-use-core-grammar"></a><h3>cr_parser_get_use_core_grammar ()</h3>
|
608
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
609
|
+
cr_parser_get_use_core_grammar (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> const *a_this</code></em>,
|
610
|
+
<em class="parameter"><code><span class="type">gboolean</span> *a_use_core_grammar</code></em>);</pre>
|
611
|
+
<p>Returns CR_OK upon succesful completion, an error code otherwise.</p>
|
612
|
+
<div class="refsect3">
|
613
|
+
<a name="id-1.2.12.6.13.5"></a><h4>Parameters</h4>
|
614
|
+
<div class="informaltable"><table width="100%" border="0">
|
615
|
+
<colgroup>
|
616
|
+
<col width="150px" class="parameters_name">
|
617
|
+
<col class="parameters_description">
|
618
|
+
<col width="200px" class="parameters_annotations">
|
619
|
+
</colgroup>
|
668
620
|
<tbody>
|
669
621
|
<tr>
|
670
|
-
<td
|
671
|
-
<td
|
622
|
+
<td class="parameter_name"><p>a_this</p></td>
|
623
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
624
|
+
<td class="parameter_annotations"> </td>
|
672
625
|
</tr>
|
673
626
|
<tr>
|
674
|
-
<td
|
675
|
-
<td>
|
627
|
+
<td class="parameter_name"><p>a_use_core_grammar</p></td>
|
628
|
+
<td class="parameter_description"><p>wether to use the core grammar or not.</p></td>
|
629
|
+
<td class="parameter_annotations"> </td>
|
676
630
|
</tr>
|
677
631
|
</tbody>
|
678
632
|
</table></div>
|
679
633
|
</div>
|
634
|
+
</div>
|
680
635
|
<hr>
|
681
636
|
<div class="refsect2">
|
682
|
-
<a name="cr-parser-parse
|
683
|
-
<pre class="programlisting">enum <
|
684
|
-
|
685
|
-
<p>
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
<
|
691
|
-
<
|
637
|
+
<a name="cr-parser-parse"></a><h3>cr_parser_parse ()</h3>
|
638
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
639
|
+
cr_parser_parse (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
640
|
+
<p>Parses the data that comes from the
|
641
|
+
input previously associated to the current instance of
|
642
|
+
<a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p>
|
643
|
+
<p>Returns CR_OK upon succesful completion, an error code otherwise.</p>
|
644
|
+
<div class="refsect3">
|
645
|
+
<a name="id-1.2.12.6.14.6"></a><h4>Parameters</h4>
|
646
|
+
<div class="informaltable"><table width="100%" border="0">
|
647
|
+
<colgroup>
|
648
|
+
<col width="150px" class="parameters_name">
|
649
|
+
<col class="parameters_description">
|
650
|
+
<col width="200px" class="parameters_annotations">
|
651
|
+
</colgroup>
|
652
|
+
<tbody><tr>
|
653
|
+
<td class="parameter_name"><p>a_this</p></td>
|
654
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
655
|
+
<td class="parameter_annotations"> </td>
|
656
|
+
</tr></tbody>
|
657
|
+
</table></div>
|
658
|
+
</div>
|
659
|
+
</div>
|
660
|
+
<hr>
|
661
|
+
<div class="refsect2">
|
662
|
+
<a name="cr-parser-parse-file"></a><h3>cr_parser_parse_file ()</h3>
|
663
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
664
|
+
cr_parser_parse_file (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
665
|
+
<em class="parameter"><code>const <span class="type">guchar</span> *a_file_uri</code></em>,
|
666
|
+
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
|
667
|
+
<p>Parses a the given in parameter.</p>
|
668
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
669
|
+
<div class="refsect3">
|
670
|
+
<a name="id-1.2.12.6.15.6"></a><h4>Parameters</h4>
|
671
|
+
<div class="informaltable"><table width="100%" border="0">
|
672
|
+
<colgroup>
|
673
|
+
<col width="150px" class="parameters_name">
|
674
|
+
<col class="parameters_description">
|
675
|
+
<col width="200px" class="parameters_annotations">
|
676
|
+
</colgroup>
|
692
677
|
<tbody>
|
693
678
|
<tr>
|
694
|
-
<td
|
695
|
-
<td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
|
679
|
+
<td class="parameter_name"><p>a_this</p></td>
|
680
|
+
<td class="parameter_description"><p>a pointer to the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
681
|
+
<td class="parameter_annotations"> </td>
|
696
682
|
</tr>
|
697
683
|
<tr>
|
698
|
-
<td
|
699
|
-
<td>
|
700
|
-
|
701
|
-
priority is defined by css2.</td>
|
684
|
+
<td class="parameter_name"><p>a_file_uri</p></td>
|
685
|
+
<td class="parameter_description"><p>the uri to the file to load. For the time being,</p></td>
|
686
|
+
<td class="parameter_annotations"> </td>
|
702
687
|
</tr>
|
703
688
|
<tr>
|
704
|
-
<td
|
705
|
-
<td>
|
689
|
+
<td class="parameter_name"><p>a_enc</p></td>
|
690
|
+
<td class="parameter_description"><p>the encoding of the file to parse.
|
691
|
+
only local files are supported.</p></td>
|
692
|
+
<td class="parameter_annotations"> </td>
|
706
693
|
</tr>
|
707
694
|
</tbody>
|
708
695
|
</table></div>
|
709
696
|
</div>
|
697
|
+
</div>
|
710
698
|
<hr>
|
711
699
|
<div class="refsect2">
|
712
|
-
<a name="cr-parser-parse-
|
713
|
-
<pre class="programlisting">enum <
|
714
|
-
<
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
</p>
|
719
|
-
<p>
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
<
|
726
|
-
<col
|
700
|
+
<a name="cr-parser-parse-buf"></a><h3>cr_parser_parse_buf ()</h3>
|
701
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
702
|
+
cr_parser_parse_buf (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
703
|
+
<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
|
704
|
+
<em class="parameter"><code><span class="type">gulong</span> a_len</code></em>,
|
705
|
+
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
|
706
|
+
<p>Parses a stylesheet from a buffer</p>
|
707
|
+
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
|
708
|
+
<div class="refsect3">
|
709
|
+
<a name="id-1.2.12.6.16.6"></a><h4>Parameters</h4>
|
710
|
+
<div class="informaltable"><table width="100%" border="0">
|
711
|
+
<colgroup>
|
712
|
+
<col width="150px" class="parameters_name">
|
713
|
+
<col class="parameters_description">
|
714
|
+
<col width="200px" class="parameters_annotations">
|
715
|
+
</colgroup>
|
727
716
|
<tbody>
|
728
717
|
<tr>
|
729
|
-
<td
|
730
|
-
<td
|
718
|
+
<td class="parameter_name"><p>a_this</p></td>
|
719
|
+
<td class="parameter_description"><p>the current instance of <span class="type">CRparser</span></p></td>
|
720
|
+
<td class="parameter_annotations"> </td>
|
731
721
|
</tr>
|
732
722
|
<tr>
|
733
|
-
<td
|
734
|
-
<td>
|
723
|
+
<td class="parameter_name"><p>a_buf</p></td>
|
724
|
+
<td class="parameter_description"><p>the input buffer</p></td>
|
725
|
+
<td class="parameter_annotations"> </td>
|
735
726
|
</tr>
|
736
|
-
</tbody>
|
737
|
-
</table></div>
|
738
|
-
</div>
|
739
|
-
<hr>
|
740
|
-
<div class="refsect2">
|
741
|
-
<a name="cr-parser-parse-statement-core"></a><h3>cr_parser_parse_statement_core ()</h3>
|
742
|
-
<pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_parser_parse_statement_core (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
743
|
-
<p>
|
744
|
-
Parses a statement as defined by the css core grammar in
|
745
|
-
chapter 4.1 of the css2 spec.
|
746
|
-
statement : ruleset | at-rule;
|
747
|
-
</p>
|
748
|
-
<div class="variablelist"><table border="0">
|
749
|
-
<col align="left" valign="top">
|
750
|
-
<tbody>
|
751
727
|
<tr>
|
752
|
-
<td
|
753
|
-
<td
|
728
|
+
<td class="parameter_name"><p>a_len</p></td>
|
729
|
+
<td class="parameter_description"><p>the length of the input buffer</p></td>
|
730
|
+
<td class="parameter_annotations"> </td>
|
754
731
|
</tr>
|
755
732
|
<tr>
|
756
|
-
<td
|
757
|
-
<td>
|
733
|
+
<td class="parameter_name"><p>a_enc</p></td>
|
734
|
+
<td class="parameter_description"><p>the encoding of the buffer</p></td>
|
735
|
+
<td class="parameter_annotations"> </td>
|
758
736
|
</tr>
|
759
737
|
</tbody>
|
760
738
|
</table></div>
|
761
739
|
</div>
|
740
|
+
</div>
|
762
741
|
<hr>
|
763
742
|
<div class="refsect2">
|
764
|
-
<a name="cr-parser-
|
765
|
-
<pre class="programlisting">enum <
|
766
|
-
|
767
|
-
<p>
|
768
|
-
|
743
|
+
<a name="cr-parser-set-default-sac-handler"></a><h3>cr_parser_set_default_sac_handler ()</h3>
|
744
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
745
|
+
cr_parser_set_default_sac_handler (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
746
|
+
<p>Sets the SAC handler associated to the current instance
|
747
|
+
of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> to the default SAC handler.</p>
|
748
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
749
|
+
<div class="refsect3">
|
750
|
+
<a name="id-1.2.12.6.17.6"></a><h4>Parameters</h4>
|
751
|
+
<div class="informaltable"><table width="100%" border="0">
|
752
|
+
<colgroup>
|
753
|
+
<col width="150px" class="parameters_name">
|
754
|
+
<col class="parameters_description">
|
755
|
+
<col width="200px" class="parameters_annotations">
|
756
|
+
</colgroup>
|
757
|
+
<tbody><tr>
|
758
|
+
<td class="parameter_name"><p>a_this</p></td>
|
759
|
+
<td class="parameter_description"><p>a pointer to the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
760
|
+
<td class="parameter_annotations"> </td>
|
761
|
+
</tr></tbody>
|
762
|
+
</table></div>
|
763
|
+
</div>
|
764
|
+
</div>
|
765
|
+
<hr>
|
766
|
+
<div class="refsect2">
|
767
|
+
<a name="cr-parser-parse-term"></a><h3>cr_parser_parse_term ()</h3>
|
768
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
769
|
+
cr_parser_parse_term (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
770
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> **a_term</code></em>);</pre>
|
771
|
+
<p>Parses a "term" as defined in the css2 spec, appendix D.1:
|
769
772
|
term ::= unary_operator? [NUMBER S* | PERCENTAGE S* | LENGTH S* |
|
770
773
|
EMS S* | EXS S* | ANGLE S* | TIME S* | FREQ S* | function ] |
|
771
|
-
STRING S* | IDENT S* | URI S* | RGB S* | UNICODERANGE S* | hexcolor
|
772
|
-
</p>
|
773
|
-
<p>
|
774
|
-
|
775
|
-
</
|
776
|
-
<div class="
|
777
|
-
<
|
774
|
+
STRING S* | IDENT S* | URI S* | RGB S* | UNICODERANGE S* | hexcolor</p>
|
775
|
+
<p>TODO: handle parsing of 'RGB'</p>
|
776
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
777
|
+
<div class="refsect3">
|
778
|
+
<a name="id-1.2.12.6.18.7"></a><h4>Parameters</h4>
|
779
|
+
<div class="informaltable"><table width="100%" border="0">
|
780
|
+
<colgroup>
|
781
|
+
<col width="150px" class="parameters_name">
|
782
|
+
<col class="parameters_description">
|
783
|
+
<col width="200px" class="parameters_annotations">
|
784
|
+
</colgroup>
|
785
|
+
<tbody><tr>
|
786
|
+
<td class="parameter_name"><p>a_term</p></td>
|
787
|
+
<td class="parameter_description"><p>out parameter. The successfully parsed term.</p></td>
|
788
|
+
<td class="parameter_annotations"> </td>
|
789
|
+
</tr></tbody>
|
790
|
+
</table></div>
|
791
|
+
</div>
|
792
|
+
</div>
|
793
|
+
<hr>
|
794
|
+
<div class="refsect2">
|
795
|
+
<a name="cr-parser-parse-expr"></a><h3>cr_parser_parse_expr ()</h3>
|
796
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
797
|
+
cr_parser_parse_expr (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
798
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> **a_expr</code></em>);</pre>
|
799
|
+
<p>Parses an expression as defined by the css2 spec in appendix
|
800
|
+
D.1:
|
801
|
+
expr: term [ operator term ]*</p>
|
802
|
+
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
|
803
|
+
<div class="refsect3">
|
804
|
+
<a name="id-1.2.12.6.19.6"></a><h4>Parameters</h4>
|
805
|
+
<div class="informaltable"><table width="100%" border="0">
|
806
|
+
<colgroup>
|
807
|
+
<col width="150px" class="parameters_name">
|
808
|
+
<col class="parameters_description">
|
809
|
+
<col width="200px" class="parameters_annotations">
|
810
|
+
</colgroup>
|
778
811
|
<tbody>
|
779
812
|
<tr>
|
780
|
-
<td
|
781
|
-
<td>
|
813
|
+
<td class="parameter_name"><p>a_this</p></td>
|
814
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
815
|
+
<td class="parameter_annotations"> </td>
|
782
816
|
</tr>
|
783
817
|
<tr>
|
784
|
-
<td
|
785
|
-
<td>
|
818
|
+
<td class="parameter_name"><p>a_expr</p></td>
|
819
|
+
<td class="parameter_description"><p>out parameter. the parsed expression.</p></td>
|
820
|
+
<td class="parameter_annotations"> </td>
|
786
821
|
</tr>
|
787
822
|
</tbody>
|
788
823
|
</table></div>
|
789
824
|
</div>
|
825
|
+
</div>
|
790
826
|
<hr>
|
791
827
|
<div class="refsect2">
|
792
|
-
<a name="cr-parser-
|
793
|
-
<pre class="programlisting">enum <
|
794
|
-
<
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
<
|
828
|
+
<a name="cr-parser-parse-prio"></a><h3>cr_parser_parse_prio ()</h3>
|
829
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
830
|
+
cr_parser_parse_prio (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
831
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_prio</code></em>);</pre>
|
832
|
+
<p>Parses a declaration priority as defined by
|
833
|
+
the css2 grammar in appendix C:
|
834
|
+
prio: IMPORTANT_SYM S*</p>
|
835
|
+
<p>Returns CR_OK upon successful completion, an error code otherwise.</p>
|
836
|
+
<div class="refsect3">
|
837
|
+
<a name="id-1.2.12.6.20.6"></a><h4>Parameters</h4>
|
838
|
+
<div class="informaltable"><table width="100%" border="0">
|
839
|
+
<colgroup>
|
840
|
+
<col width="150px" class="parameters_name">
|
841
|
+
<col class="parameters_description">
|
842
|
+
<col width="200px" class="parameters_annotations">
|
843
|
+
</colgroup>
|
800
844
|
<tbody>
|
801
845
|
<tr>
|
802
|
-
<td
|
803
|
-
<td>
|
846
|
+
<td class="parameter_name"><p>a_this</p></td>
|
847
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
848
|
+
<td class="parameter_annotations"> </td>
|
804
849
|
</tr>
|
805
850
|
<tr>
|
806
|
-
<td
|
807
|
-
<td>
|
851
|
+
<td class="parameter_name"><p>a_prio</p></td>
|
852
|
+
<td class="parameter_description"><p>a string representing the priority.
|
853
|
+
Today, only "!important" is returned as only this
|
854
|
+
priority is defined by css2.</p></td>
|
855
|
+
<td class="parameter_annotations"> </td>
|
808
856
|
</tr>
|
809
857
|
</tbody>
|
810
858
|
</table></div>
|
811
859
|
</div>
|
860
|
+
</div>
|
812
861
|
<hr>
|
813
862
|
<div class="refsect2">
|
814
|
-
<a name="cr-parser-
|
815
|
-
<pre class="programlisting">enum <
|
816
|
-
|
817
|
-
<
|
818
|
-
|
819
|
-
</
|
820
|
-
<
|
821
|
-
|
863
|
+
<a name="cr-parser-parse-declaration"></a><h3>cr_parser_parse_declaration ()</h3>
|
864
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
865
|
+
cr_parser_parse_declaration (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
866
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_property</code></em>,
|
867
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> **a_expr</code></em>,
|
868
|
+
<em class="parameter"><code><span class="type">gboolean</span> *a_important</code></em>);</pre>
|
869
|
+
<p>TODO: return the parsed priority, so that
|
870
|
+
upper layers can take benefit from it.
|
871
|
+
Parses a "declaration" as defined by the css2 spec in appendix D.1:
|
872
|
+
declaration ::= [property ':' S* expr prio?]?</p>
|
873
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
874
|
+
<div class="refsect3">
|
875
|
+
<a name="id-1.2.12.6.21.6"></a><h4>Parameters</h4>
|
876
|
+
<div class="informaltable"><table width="100%" border="0">
|
877
|
+
<colgroup>
|
878
|
+
<col width="150px" class="parameters_name">
|
879
|
+
<col class="parameters_description">
|
880
|
+
<col width="200px" class="parameters_annotations">
|
881
|
+
</colgroup>
|
822
882
|
<tbody>
|
823
883
|
<tr>
|
824
|
-
<td
|
825
|
-
<td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
|
884
|
+
<td class="parameter_name"><p>a_this</p></td>
|
885
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
886
|
+
<td class="parameter_annotations"> </td>
|
826
887
|
</tr>
|
827
888
|
<tr>
|
828
|
-
<td
|
829
|
-
<td>the
|
889
|
+
<td class="parameter_name"><p>a_property</p></td>
|
890
|
+
<td class="parameter_description"><p>the successfully parsed property. The caller
|
891
|
+
*must* free the returned pointer.</p></td>
|
892
|
+
<td class="parameter_annotations"> </td>
|
830
893
|
</tr>
|
831
894
|
<tr>
|
832
|
-
<td
|
833
|
-
<td>
|
895
|
+
<td class="parameter_name"><p>a_expr</p></td>
|
896
|
+
<td class="parameter_description"><p>the expression that represents the attribute value.
|
897
|
+
The caller *must* free the returned pointer.</p></td>
|
898
|
+
<td class="parameter_annotations"> </td>
|
834
899
|
</tr>
|
835
900
|
</tbody>
|
836
901
|
</table></div>
|
837
902
|
</div>
|
903
|
+
</div>
|
904
|
+
<hr>
|
905
|
+
<div class="refsect2">
|
906
|
+
<a name="cr-parser-parse-statement-core"></a><h3>cr_parser_parse_statement_core ()</h3>
|
907
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
908
|
+
cr_parser_parse_statement_core (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
909
|
+
<p>Parses a statement as defined by the css core grammar in
|
910
|
+
chapter 4.1 of the css2 spec.
|
911
|
+
statement : ruleset | at-rule;</p>
|
912
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
913
|
+
<div class="refsect3">
|
914
|
+
<a name="id-1.2.12.6.22.6"></a><h4>Parameters</h4>
|
915
|
+
<div class="informaltable"><table width="100%" border="0">
|
916
|
+
<colgroup>
|
917
|
+
<col width="150px" class="parameters_name">
|
918
|
+
<col class="parameters_description">
|
919
|
+
<col width="200px" class="parameters_annotations">
|
920
|
+
</colgroup>
|
921
|
+
<tbody><tr>
|
922
|
+
<td class="parameter_name"><p>a_this</p></td>
|
923
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
924
|
+
<td class="parameter_annotations"> </td>
|
925
|
+
</tr></tbody>
|
926
|
+
</table></div>
|
927
|
+
</div>
|
928
|
+
</div>
|
929
|
+
<hr>
|
930
|
+
<div class="refsect2">
|
931
|
+
<a name="cr-parser-parse-ruleset"></a><h3>cr_parser_parse_ruleset ()</h3>
|
932
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
933
|
+
cr_parser_parse_ruleset (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
934
|
+
<p>Parses a "ruleset" as defined in the css2 spec at appendix D.1.
|
935
|
+
ruleset ::= selector [ ',' S* selector ]*
|
936
|
+
'{' S* declaration? [ ';' S* declaration? ]* '}' S*;</p>
|
937
|
+
<p>This methods calls the the SAC handler on the relevant SAC handler
|
938
|
+
callbacks whenever it encounters some specific constructions.
|
939
|
+
See the documentation of <a class="link" href="libcroco-cr-doc-handler.html#CRDocHandler" title="struct CRDocHandler"><span class="type">CRDocHandler</span></a> (the SAC handler) to know
|
940
|
+
when which SAC handler is called.</p>
|
941
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
942
|
+
<div class="refsect3">
|
943
|
+
<a name="id-1.2.12.6.23.7"></a><h4>Parameters</h4>
|
944
|
+
<div class="informaltable"><table width="100%" border="0">
|
945
|
+
<colgroup>
|
946
|
+
<col width="150px" class="parameters_name">
|
947
|
+
<col class="parameters_description">
|
948
|
+
<col width="200px" class="parameters_annotations">
|
949
|
+
</colgroup>
|
950
|
+
<tbody><tr>
|
951
|
+
<td class="parameter_name"><p>a_this</p></td>
|
952
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
953
|
+
<td class="parameter_annotations"> </td>
|
954
|
+
</tr></tbody>
|
955
|
+
</table></div>
|
956
|
+
</div>
|
957
|
+
</div>
|
838
958
|
<hr>
|
839
959
|
<div class="refsect2">
|
840
|
-
<a name="cr-parser-
|
841
|
-
<pre class="programlisting">enum <
|
842
|
-
|
843
|
-
<
|
844
|
-
<
|
960
|
+
<a name="cr-parser-parse-import"></a><h3>cr_parser_parse_import ()</h3>
|
961
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
962
|
+
cr_parser_parse_import (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
963
|
+
<em class="parameter"><code><span class="type">GList</span> **a_media_list</code></em>,
|
964
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_import_string</code></em>,
|
965
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-parsing-location.html#CRParsingLocation" title="struct CRParsingLocation"><span class="type">CRParsingLocation</span></a> *a_location</code></em>);</pre>
|
966
|
+
<p>Parses an 'import' declaration as defined in the css2 spec
|
967
|
+
in appendix D.1:</p>
|
968
|
+
<p>import ::=
|
969
|
+
@import [STRING|URI] S* [ medium [ ',' S* medium]* ]? ';' S*</p>
|
970
|
+
<p>Returns CR_OK upon sucessfull completion, an error code otherwise.</p>
|
971
|
+
<div class="refsect3">
|
972
|
+
<a name="id-1.2.12.6.24.7"></a><h4>Parameters</h4>
|
973
|
+
<div class="informaltable"><table width="100%" border="0">
|
974
|
+
<colgroup>
|
975
|
+
<col width="150px" class="parameters_name">
|
976
|
+
<col class="parameters_description">
|
977
|
+
<col width="200px" class="parameters_annotations">
|
978
|
+
</colgroup>
|
845
979
|
<tbody>
|
846
980
|
<tr>
|
847
|
-
<td
|
848
|
-
<td
|
981
|
+
<td class="parameter_name"><p>a_this</p></td>
|
982
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance
|
983
|
+
of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
984
|
+
<td class="parameter_annotations"> </td>
|
849
985
|
</tr>
|
850
986
|
<tr>
|
851
|
-
<td
|
852
|
-
<td>
|
987
|
+
<td class="parameter_name"><p>a_media_list</p></td>
|
988
|
+
<td class="parameter_description"><p>out parameter. A linked list of
|
989
|
+
<a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a>
|
990
|
+
Each CRString is a string that contains
|
991
|
+
a 'medium' declaration part of the successfully
|
992
|
+
parsed 'import' declaration.</p></td>
|
993
|
+
<td class="parameter_annotations"> </td>
|
853
994
|
</tr>
|
854
995
|
<tr>
|
855
|
-
<td
|
856
|
-
<td>
|
996
|
+
<td class="parameter_name"><p>a_import_string</p></td>
|
997
|
+
<td class="parameter_description"><p>out parameter.
|
998
|
+
A string that contains the 'import
|
999
|
+
string". The import string can be either an uri (if it starts with
|
1000
|
+
the substring "uri(") or a any other css2 string. Note that
|
1001
|
+
*a_import_string must be initially set to NULL or else, this function
|
1002
|
+
will return CR_BAD_PARAM_ERROR.</p></td>
|
1003
|
+
<td class="parameter_annotations"> </td>
|
1004
|
+
</tr>
|
1005
|
+
<tr>
|
1006
|
+
<td class="parameter_name"><p>a_location</p></td>
|
1007
|
+
<td class="parameter_description"><p>the location (line, column) where the import has been parsed</p></td>
|
1008
|
+
<td class="parameter_annotations"> </td>
|
857
1009
|
</tr>
|
858
1010
|
</tbody>
|
859
1011
|
</table></div>
|
860
1012
|
</div>
|
1013
|
+
</div>
|
861
1014
|
<hr>
|
862
1015
|
<div class="refsect2">
|
863
|
-
<a name="cr-parser-
|
864
|
-
<pre class="programlisting">enum <
|
865
|
-
|
866
|
-
<
|
867
|
-
|
1016
|
+
<a name="cr-parser-parse-media"></a><h3>cr_parser_parse_media ()</h3>
|
1017
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
1018
|
+
cr_parser_parse_media (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
1019
|
+
<p>Parses a 'media' declaration as specified in the css2 spec at
|
1020
|
+
appendix D.1:</p>
|
1021
|
+
<p>media ::= @media S* medium [ ',' S* medium ]* '{' S* ruleset* '}' S*</p>
|
1022
|
+
<p>Note that this function calls the required sac handlers during the parsing
|
1023
|
+
to notify media productions. See <a class="link" href="libcroco-cr-doc-handler.html#CRDocHandler" title="struct CRDocHandler"><span class="type">CRDocHandler</span></a> to know the callback called
|
1024
|
+
during @media parsing.</p>
|
1025
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
1026
|
+
<div class="refsect3">
|
1027
|
+
<a name="id-1.2.12.6.25.8"></a><h4>Parameters</h4>
|
1028
|
+
<div class="informaltable"><table width="100%" border="0">
|
1029
|
+
<colgroup>
|
1030
|
+
<col width="150px" class="parameters_name">
|
1031
|
+
<col class="parameters_description">
|
1032
|
+
<col width="200px" class="parameters_annotations">
|
1033
|
+
</colgroup>
|
1034
|
+
<tbody><tr>
|
1035
|
+
<td class="parameter_name"><p>a_this</p></td>
|
1036
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
1037
|
+
<td class="parameter_annotations"> </td>
|
1038
|
+
</tr></tbody>
|
1039
|
+
</table></div>
|
1040
|
+
</div>
|
1041
|
+
</div>
|
1042
|
+
<hr>
|
1043
|
+
<div class="refsect2">
|
1044
|
+
<a name="cr-parser-parse-page"></a><h3>cr_parser_parse_page ()</h3>
|
1045
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
1046
|
+
cr_parser_parse_page (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
1047
|
+
<p>Parses '@page' rule as specified in the css2 spec in appendix D.1:
|
1048
|
+
page ::= PAGE_SYM S* IDENT? pseudo_page? S*
|
1049
|
+
'{' S* declaration [ ';' S* declaration ]* '}' S*</p>
|
1050
|
+
<p>This function also calls the relevant SAC handlers whenever it
|
1051
|
+
encounters a construction that must
|
1052
|
+
be reported to the calling application.</p>
|
1053
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
1054
|
+
<div class="refsect3">
|
1055
|
+
<a name="id-1.2.12.6.26.7"></a><h4>Parameters</h4>
|
1056
|
+
<div class="informaltable"><table width="100%" border="0">
|
1057
|
+
<colgroup>
|
1058
|
+
<col width="150px" class="parameters_name">
|
1059
|
+
<col class="parameters_description">
|
1060
|
+
<col width="200px" class="parameters_annotations">
|
1061
|
+
</colgroup>
|
1062
|
+
<tbody><tr>
|
1063
|
+
<td class="parameter_name"><p>a_this</p></td>
|
1064
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
1065
|
+
<td class="parameter_annotations"> </td>
|
1066
|
+
</tr></tbody>
|
1067
|
+
</table></div>
|
1068
|
+
</div>
|
1069
|
+
</div>
|
1070
|
+
<hr>
|
1071
|
+
<div class="refsect2">
|
1072
|
+
<a name="cr-parser-parse-charset"></a><h3>cr_parser_parse_charset ()</h3>
|
1073
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
1074
|
+
cr_parser_parse_charset (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>,
|
1075
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_value</code></em>,
|
1076
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-parsing-location.html#CRParsingLocation" title="struct CRParsingLocation"><span class="type">CRParsingLocation</span></a> *a_charset_sym_location</code></em>);</pre>
|
1077
|
+
<p>Parses a charset declaration as defined implictly by the css2 spec in
|
1078
|
+
appendix D.1:
|
1079
|
+
charset ::= CHARSET_SYM S* STRING S* ';'</p>
|
1080
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
1081
|
+
<div class="refsect3">
|
1082
|
+
<a name="id-1.2.12.6.27.6"></a><h4>Parameters</h4>
|
1083
|
+
<div class="informaltable"><table width="100%" border="0">
|
1084
|
+
<colgroup>
|
1085
|
+
<col width="150px" class="parameters_name">
|
1086
|
+
<col class="parameters_description">
|
1087
|
+
<col width="200px" class="parameters_annotations">
|
1088
|
+
</colgroup>
|
868
1089
|
<tbody>
|
869
1090
|
<tr>
|
870
|
-
<td
|
871
|
-
<td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
|
1091
|
+
<td class="parameter_name"><p>a_this</p></td>
|
1092
|
+
<td class="parameter_description"><p>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
1093
|
+
<td class="parameter_annotations"> </td>
|
872
1094
|
</tr>
|
873
1095
|
<tr>
|
874
|
-
<td
|
875
|
-
<td>
|
1096
|
+
<td class="parameter_name"><p>a_value</p></td>
|
1097
|
+
<td class="parameter_description"><p>out parameter. The actual parsed value of the charset
|
1098
|
+
declararation. Note that for safety check reasons, *a_value must be
|
1099
|
+
set to NULL.</p></td>
|
1100
|
+
<td class="parameter_annotations"> </td>
|
876
1101
|
</tr>
|
877
1102
|
<tr>
|
878
|
-
<td
|
879
|
-
<td>
|
1103
|
+
<td class="parameter_name"><p>a_charset_sym_location</p></td>
|
1104
|
+
<td class="parameter_description"><p>the parsing location of the charset rule</p></td>
|
1105
|
+
<td class="parameter_annotations"> </td>
|
880
1106
|
</tr>
|
881
1107
|
</tbody>
|
882
1108
|
</table></div>
|
883
1109
|
</div>
|
1110
|
+
</div>
|
884
1111
|
<hr>
|
885
1112
|
<div class="refsect2">
|
886
|
-
<a name="cr-parser-
|
887
|
-
<pre class="programlisting">enum <span class="returnvalue">CRStatus</span>
|
888
|
-
|
889
|
-
<p>
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
<
|
894
|
-
<
|
895
|
-
<
|
896
|
-
<
|
897
|
-
<
|
898
|
-
<
|
899
|
-
|
900
|
-
<
|
901
|
-
<
|
902
|
-
|
903
|
-
|
904
|
-
</
|
1113
|
+
<a name="cr-parser-parse-font-face"></a><h3>cr_parser_parse_font_face ()</h3>
|
1114
|
+
<pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
|
1115
|
+
cr_parser_parse_font_face (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
1116
|
+
<p>Parses the "@font-face" rule specified in the css1 spec in
|
1117
|
+
appendix D.1:</p>
|
1118
|
+
<p>font_face ::= FONT_FACE_SYM S*
|
1119
|
+
'{' S* declaration [ ';' S* declaration ]* '}' S*</p>
|
1120
|
+
<p>This function will call SAC handlers whenever it is necessary.</p>
|
1121
|
+
<p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
|
1122
|
+
<div class="refsect3">
|
1123
|
+
<a name="id-1.2.12.6.28.8"></a><h4>Parameters</h4>
|
1124
|
+
<div class="informaltable"><table width="100%" border="0">
|
1125
|
+
<colgroup>
|
1126
|
+
<col width="150px" class="parameters_name">
|
1127
|
+
<col class="parameters_description">
|
1128
|
+
<col width="200px" class="parameters_annotations">
|
1129
|
+
</colgroup>
|
1130
|
+
<tbody><tr>
|
1131
|
+
<td class="parameter_name"><p>a_this</p></td>
|
1132
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p></td>
|
1133
|
+
<td class="parameter_annotations"> </td>
|
1134
|
+
</tr></tbody>
|
905
1135
|
</table></div>
|
906
1136
|
</div>
|
907
1137
|
</div>
|
1138
|
+
<hr>
|
1139
|
+
<div class="refsect2">
|
1140
|
+
<a name="cr-parser-destroy"></a><h3>cr_parser_destroy ()</h3>
|
1141
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
1142
|
+
cr_parser_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> *a_this</code></em>);</pre>
|
1143
|
+
<p>Destroys the current instance
|
1144
|
+
of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</p>
|
1145
|
+
<div class="refsect3">
|
1146
|
+
<a name="id-1.2.12.6.29.5"></a><h4>Parameters</h4>
|
1147
|
+
<div class="informaltable"><table width="100%" border="0">
|
1148
|
+
<colgroup>
|
1149
|
+
<col width="150px" class="parameters_name">
|
1150
|
+
<col class="parameters_description">
|
1151
|
+
<col width="200px" class="parameters_annotations">
|
1152
|
+
</colgroup>
|
1153
|
+
<tbody><tr>
|
1154
|
+
<td class="parameter_name"><p>a_this</p></td>
|
1155
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> to
|
1156
|
+
destroy.</p></td>
|
1157
|
+
<td class="parameter_annotations"> </td>
|
1158
|
+
</tr></tbody>
|
1159
|
+
</table></div>
|
1160
|
+
</div>
|
1161
|
+
</div>
|
1162
|
+
</div>
|
1163
|
+
<div class="refsect1">
|
1164
|
+
<a name="libcroco-cr-parser.other_details"></a><h2>Types and Values</h2>
|
1165
|
+
<div class="refsect2">
|
1166
|
+
<a name="CRParser"></a><h3>struct CRParser</h3>
|
1167
|
+
<pre class="programlisting">struct CRParser {
|
1168
|
+
CRParserPriv *priv ;
|
1169
|
+
};
|
1170
|
+
</pre>
|
908
1171
|
</div>
|
909
|
-
<div class="footer">
|
910
1172
|
<hr>
|
911
|
-
|
1173
|
+
<div class="refsect2">
|
1174
|
+
<a name="CRParserPriv"></a><h3>CRParserPriv</h3>
|
1175
|
+
<pre class="programlisting">typedef struct _CRParserPriv CRParserPriv;</pre>
|
1176
|
+
</div>
|
1177
|
+
</div>
|
1178
|
+
</div>
|
1179
|
+
<div class="footer">
|
1180
|
+
<hr>Generated by GTK-Doc V1.24.1</div>
|
912
1181
|
</body>
|
913
1182
|
</html>
|