rsvg2 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +7 -0
  2. data/README +35 -0
  3. data/Rakefile +69 -0
  4. data/ext/rsvg2/depend +6 -0
  5. data/ext/rsvg2/extconf.rb +89 -0
  6. data/ext/rsvg2/rbrsvg.c +206 -0
  7. data/ext/rsvg2/rbrsvgdimensiondata.c +194 -0
  8. data/ext/rsvg2/rbrsvghandle.c +496 -0
  9. data/ext/rsvg2/rsvg2.def +2 -0
  10. data/ext/rsvg2/rsvg2.h +70 -0
  11. data/extconf.rb +49 -0
  12. data/lib/2.0/rsvg2.so +0 -0
  13. data/lib/2.1/rsvg2.so +0 -0
  14. data/lib/2.2/rsvg2.so +0 -0
  15. data/lib/rsvg2.rb +33 -0
  16. data/sample/svg-viewer.rb +44 -0
  17. data/sample/svg2.rb +60 -0
  18. data/test/rsvg2-test-utils.rb +23 -0
  19. data/test/run-test.rb +49 -0
  20. data/test/test-handle.rb +91 -0
  21. data/vendor/local/bin/croco-0.6-config +87 -0
  22. data/vendor/local/bin/csslint-0.6.exe +0 -0
  23. data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
  24. data/vendor/local/bin/librsvg-2-2.dll +0 -0
  25. data/vendor/local/bin/rsvg-convert.exe +0 -0
  26. data/vendor/local/include/libcroco-0.6/libcroco/cr-additional-sel.h +98 -0
  27. data/vendor/local/include/libcroco-0.6/libcroco/cr-attr-sel.h +74 -0
  28. data/vendor/local/include/libcroco-0.6/libcroco/cr-cascade.h +74 -0
  29. data/vendor/local/include/libcroco-0.6/libcroco/cr-declaration.h +136 -0
  30. data/vendor/local/include/libcroco-0.6/libcroco/cr-doc-handler.h +298 -0
  31. data/vendor/local/include/libcroco-0.6/libcroco/cr-enc-handler.h +94 -0
  32. data/vendor/local/include/libcroco-0.6/libcroco/cr-fonts.h +315 -0
  33. data/vendor/local/include/libcroco-0.6/libcroco/cr-input.h +174 -0
  34. data/vendor/local/include/libcroco-0.6/libcroco/cr-num.h +127 -0
  35. data/vendor/local/include/libcroco-0.6/libcroco/cr-om-parser.h +98 -0
  36. data/vendor/local/include/libcroco-0.6/libcroco/cr-parser.h +128 -0
  37. data/vendor/local/include/libcroco-0.6/libcroco/cr-parsing-location.h +70 -0
  38. data/vendor/local/include/libcroco-0.6/libcroco/cr-prop-list.h +80 -0
  39. data/vendor/local/include/libcroco-0.6/libcroco/cr-pseudo.h +64 -0
  40. data/vendor/local/include/libcroco-0.6/libcroco/cr-rgb.h +94 -0
  41. data/vendor/local/include/libcroco-0.6/libcroco/cr-sel-eng.h +110 -0
  42. data/vendor/local/include/libcroco-0.6/libcroco/cr-selector.h +95 -0
  43. data/vendor/local/include/libcroco-0.6/libcroco/cr-simple-sel.h +130 -0
  44. data/vendor/local/include/libcroco-0.6/libcroco/cr-statement.h +440 -0
  45. data/vendor/local/include/libcroco-0.6/libcroco/cr-string.h +76 -0
  46. data/vendor/local/include/libcroco-0.6/libcroco/cr-style.h +339 -0
  47. data/vendor/local/include/libcroco-0.6/libcroco/cr-stylesheet.h +102 -0
  48. data/vendor/local/include/libcroco-0.6/libcroco/cr-term.h +190 -0
  49. data/vendor/local/include/libcroco-0.6/libcroco/cr-tknzr.h +115 -0
  50. data/vendor/local/include/libcroco-0.6/libcroco/cr-token.h +212 -0
  51. data/vendor/local/include/libcroco-0.6/libcroco/cr-utils.h +246 -0
  52. data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +17 -0
  53. data/vendor/local/include/libcroco-0.6/libcroco/libcroco.h +44 -0
  54. data/vendor/local/include/librsvg-2.0/librsvg/librsvg-enum-types.h +24 -0
  55. data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +28 -0
  56. data/vendor/local/include/librsvg-2.0/librsvg/rsvg-cairo.h +42 -0
  57. data/vendor/local/include/librsvg-2.0/librsvg/rsvg.h +264 -0
  58. data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
  59. data/vendor/local/lib/libcroco-0.6.a +0 -0
  60. data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
  61. data/vendor/local/lib/libcroco-0.6.la +41 -0
  62. data/vendor/local/lib/librsvg-2.a +0 -0
  63. data/vendor/local/lib/librsvg-2.dll.a +0 -0
  64. data/vendor/local/lib/librsvg-2.la +41 -0
  65. data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +11 -0
  66. data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +15 -0
  67. data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +754 -0
  68. data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +113 -0
  69. data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
  70. data/vendor/local/share/gtk-doc/html/libcroco/index.html +109 -0
  71. data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +582 -0
  72. data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
  73. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +337 -0
  74. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +203 -0
  75. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +240 -0
  76. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +642 -0
  77. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +517 -0
  78. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +164 -0
  79. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +670 -0
  80. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1102 -0
  81. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +265 -0
  82. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +380 -0
  83. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -0
  84. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +205 -0
  85. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +421 -0
  86. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +141 -0
  87. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +503 -0
  88. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +346 -0
  89. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +246 -0
  90. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +240 -0
  91. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1408 -0
  92. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +137 -0
  93. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +384 -0
  94. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +158 -0
  95. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +304 -0
  96. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +312 -0
  97. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +428 -0
  98. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +334 -0
  99. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +80 -0
  100. data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +511 -0
  101. data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
  102. data/vendor/local/share/gtk-doc/html/libcroco/style.css +266 -0
  103. data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
  104. data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1420 -0
  105. data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +55 -0
  106. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +55 -0
  107. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +43 -0
  108. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +47 -0
  109. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +46 -0
  110. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +39 -0
  111. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +54 -0
  112. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +53 -0
  113. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +100 -0
  114. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +323 -0
  115. data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
  116. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +88 -0
  117. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +106 -0
  118. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
  119. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
  120. data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +57 -0
  121. data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +38 -0
  122. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
  123. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
  124. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +94 -0
  125. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +360 -0
  126. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +484 -0
  127. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +154 -0
  128. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +142 -0
  129. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +57 -0
  130. data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +476 -0
  131. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
  132. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
  133. data/vendor/local/share/license/libcroco/AUTHORS +13 -0
  134. data/vendor/local/share/license/libcroco/COPYING +481 -0
  135. data/vendor/local/share/license/libcroco/COPYING.LIB +481 -0
  136. data/vendor/local/share/license/librsvg/AUTHORS +1 -0
  137. data/vendor/local/share/license/librsvg/COPYING +340 -0
  138. data/vendor/local/share/license/librsvg/COPYING.LIB +482 -0
  139. data/vendor/local/share/man/man1/rsvg-convert.1 +55 -0
  140. metadata +209 -0
@@ -0,0 +1,913 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
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.76.1">
7
+ <link rel="home" href="index.html" title="Libcroco Reference Manual">
8
+ <link rel="up" href="ch01.html" title="Extensive APIs description">
9
+ <link rel="prev" href="libcroco-cr-om-parser.html" title="cr-om-parser">
10
+ <link rel="next" href="libcroco-cr-parsing-location.html" title="cr-parsing-location">
11
+ <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
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="2">
16
+ <tr valign="middle">
17
+ <td><a accesskey="p" href="libcroco-cr-om-parser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
+ <th width="100%" align="center">Libcroco Reference Manual</th>
21
+ <td><a accesskey="n" href="libcroco-cr-parsing-location.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
+ </tr>
23
+ <tr><td colspan="5" class="shortcuts">
24
+ <a href="#libcroco-cr-parser.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#libcroco-cr-parser.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-parser"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="libcroco-cr-parser.top_of_page"></a>cr-parser</span></h2>
34
+ <p>cr-parser</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </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
+ <div class="refsect1">
106
+ <a name="libcroco-cr-parser.details"></a><h2>Details</h2>
107
+ <div class="refsect2">
108
+ <a name="CRParser"></a><h3>struct CRParser</h3>
109
+ <pre class="programlisting">struct CRParser {
110
+ CRParserPriv *priv ;
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">
150
+ <tbody>
151
+ <tr>
152
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
153
+ <td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>
154
+ </td>
155
+ </tr>
156
+ <tr>
157
+ <td><p><span class="term"><em class="parameter"><code>a_loc</code></em> :</span></p></td>
158
+ <td>the parsing location to get.</td>
159
+ </tr>
160
+ <tr>
161
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
162
+ <td>CR_OK upon succesful completion, an error code
163
+ otherwise.</td>
164
+ </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
+ <tr>
180
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
181
+ <td>the "this pointer" of the current instance of
182
+ <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
183
+ </tr>
184
+ <tr>
185
+ <td><p><span class="term"><em class="parameter"><code>a_handler</code></em> :</span></p></td>
186
+ <td>out parameter. The returned handler.</td>
187
+ </tr>
188
+ <tr>
189
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
190
+ <td>CR_OK upon successfull completion, an error code
191
+ otherwise.</td>
192
+ </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
+ <tr>
208
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
209
+ <td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>
210
+ </td>
211
+ </tr>
212
+ <tr>
213
+ <td><p><span class="term"><em class="parameter"><code>a_tknzr</code></em> :</span></p></td>
214
+ <td>out parameter. The returned tokenizer</td>
215
+ </tr>
216
+ <tr>
217
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
218
+ <td>CR_OK upon succesful completion, an error code
219
+ otherwise</td>
220
+ </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
+ <tr>
233
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
234
+ <td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
235
+ </tr>
236
+ <tr>
237
+ <td><p><span class="term"><em class="parameter"><code>a_use_core_grammar</code></em> :</span></p></td>
238
+ <td>wether to use the core grammar or not.</td>
239
+ </tr>
240
+ <tr>
241
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
242
+ <td>CR_OK upon succesful completion, an error code otherwise.</td>
243
+ </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
+ <tr>
259
+ <td><p><span class="term"><em class="parameter"><code>a_tknzr</code></em> :</span></p></td>
260
+ <td>the tokenizer to use for the parsing.</td>
261
+ </tr>
262
+ <tr>
263
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
264
+ <td>the newly created instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>,
265
+ or NULL if an error occured.</td>
266
+ </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
+ <tr>
284
+ <td><p><span class="term"><em class="parameter"><code>a_buf</code></em> :</span></p></td>
285
+ <td>the buffer to parse.</td>
286
+ </tr>
287
+ <tr>
288
+ <td><p><span class="term"><em class="parameter"><code>a_len</code></em> :</span></p></td>
289
+ <td>the length of the data in the buffer.</td>
290
+ </tr>
291
+ <tr>
292
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
293
+ <td>the encoding of the input buffer a_buf.</td>
294
+ </tr>
295
+ <tr>
296
+ <td><p><span class="term"><em class="parameter"><code>a_free_buf</code></em> :</span></p></td>
297
+ <td>if set to TRUE, a_buf will be freed
298
+ during the destruction of the newly built instance
299
+ 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
300
+ eventually free it.</td>
301
+ </tr>
302
+ <tr>
303
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
304
+ <td>the newly built parser, or NULL if an error arises.</td>
305
+ </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
+ <tr>
318
+ <td><p><span class="term"><em class="parameter"><code>a_file_uri</code></em> :</span></p></td>
319
+ <td>the uri of the file to parse.</td>
320
+ </tr>
321
+ <tr>
322
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
323
+ <td>the file encoding to use.</td>
324
+ </tr>
325
+ <tr>
326
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
327
+ <td>the newly built parser.</td>
328
+ </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
+ <tr>
340
+ <td><p><span class="term"><em class="parameter"><code>a_input</code></em> :</span></p></td>
341
+ <td>the parser input stream to use.</td>
342
+ </tr>
343
+ <tr>
344
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
345
+ <td>a newly built parser input.</td>
346
+ </tr>
347
+ </tbody>
348
+ </table></div>
349
+ </div>
350
+ <hr>
351
+ <div class="refsect2">
352
+ <a name="cr-parser-parse"></a><h3>cr_parser_parse ()</h3>
353
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>
354
+ <p>
355
+ Parses the data that comes from the
356
+ input previously associated to the current instance of
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">
361
+ <tbody>
362
+ <tr>
363
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
364
+ <td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
365
+ </tr>
366
+ <tr>
367
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
368
+ <td>CR_OK upon succesful completion, an error code otherwise.</td>
369
+ </tr>
370
+ </tbody>
371
+ </table></div>
372
+ </div>
373
+ <hr>
374
+ <div class="refsect2">
375
+ <a name="cr-parser-parse-buf"></a><h3>cr_parser_parse_buf ()</h3>
376
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
377
+ <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>,
378
+ <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>,
379
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
380
+ <p>
381
+ Parses a stylesheet from a buffer
382
+ </p>
383
+ <div class="variablelist"><table border="0">
384
+ <col align="left" valign="top">
385
+ <tbody>
386
+ <tr>
387
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
388
+ <td>the current instance of <span class="type">CRparser</span>
389
+ </td>
390
+ </tr>
391
+ <tr>
392
+ <td><p><span class="term"><em class="parameter"><code>a_buf</code></em> :</span></p></td>
393
+ <td>the input buffer</td>
394
+ </tr>
395
+ <tr>
396
+ <td><p><span class="term"><em class="parameter"><code>a_len</code></em> :</span></p></td>
397
+ <td>the length of the input buffer</td>
398
+ </tr>
399
+ <tr>
400
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
401
+ <td>the encoding of the buffer</td>
402
+ </tr>
403
+ <tr>
404
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
405
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
406
+ </tr>
407
+ </tbody>
408
+ </table></div>
409
+ </div>
410
+ <hr>
411
+ <div class="refsect2">
412
+ <a name="cr-parser-parse-charset"></a><h3>cr_parser_parse_charset ()</h3>
413
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
414
+ <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>,
415
+ <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>
416
+ <p>
417
+ Parses a charset declaration as defined implictly by the css2 spec in
418
+ appendix D.1:
419
+ charset ::= CHARSET_SYM S* STRING S* ';'
420
+ </p>
421
+ <div class="variablelist"><table border="0">
422
+ <col align="left" valign="top">
423
+ <tbody>
424
+ <tr>
425
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
426
+ <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>
427
+ </tr>
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>
437
+ </tr>
438
+ <tr>
439
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
440
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
441
+ </tr>
442
+ </tbody>
443
+ </table></div>
444
+ </div>
445
+ <hr>
446
+ <div class="refsect2">
447
+ <a name="cr-parser-parse-declaration"></a><h3>cr_parser_parse_declaration ()</h3>
448
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
449
+ <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>,
450
+ <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>,
451
+ <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>);</pre>
452
+ <p>
453
+ TODO: return the parsed priority, so that
454
+ upper layers can take benefit from it.
455
+ Parses a "declaration" as defined by the css2 spec in appendix D.1:
456
+ declaration ::= [property ':' S* expr prio?]?
457
+ </p>
458
+ <div class="variablelist"><table border="0">
459
+ <col align="left" valign="top">
460
+ <tbody>
461
+ <tr>
462
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
463
+ <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>
464
+ </tr>
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>
469
+ </tr>
470
+ <tr>
471
+ <td><p><span class="term"><em class="parameter"><code>a_expr</code></em> :</span></p></td>
472
+ <td>the expression that represents the attribute value.
473
+ The caller *must* free the returned pointer.</td>
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>
478
+ </tr>
479
+ </tbody>
480
+ </table></div>
481
+ </div>
482
+ <hr>
483
+ <div class="refsect2">
484
+ <a name="cr-parser-parse-expr"></a><h3>cr_parser_parse_expr ()</h3>
485
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
486
+ <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>
487
+ <p>
488
+ Parses an expression as defined by the css2 spec in appendix
489
+ D.1:
490
+ expr: term [ operator term ]*
491
+ </p>
492
+ <div class="variablelist"><table border="0">
493
+ <col align="left" valign="top">
494
+ <tbody>
495
+ <tr>
496
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></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>.</td>
498
+ </tr>
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>
502
+ </tr>
503
+ <tr>
504
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
505
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
506
+ </tr>
507
+ </tbody>
508
+ </table></div>
509
+ </div>
510
+ <hr>
511
+ <div class="refsect2">
512
+ <a name="cr-parser-parse-file"></a><h3>cr_parser_parse_file ()</h3>
513
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
514
+ <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>,
515
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
516
+ <p>
517
+ Parses a the given in parameter.
518
+ </p>
519
+ <div class="variablelist"><table border="0">
520
+ <col align="left" valign="top">
521
+ <tbody>
522
+ <tr>
523
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
524
+ <td>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>.</td>
525
+ </tr>
526
+ <tr>
527
+ <td><p><span class="term"><em class="parameter"><code>a_file_uri</code></em> :</span></p></td>
528
+ <td>the uri to the file to load. For the time being,</td>
529
+ </tr>
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>
538
+ </tr>
539
+ </tbody>
540
+ </table></div>
541
+ </div>
542
+ <hr>
543
+ <div class="refsect2">
544
+ <a name="cr-parser-parse-font-face"></a><h3>cr_parser_parse_font_face ()</h3>
545
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>
546
+ <p>
547
+ Parses the "@font-face" rule specified in the css1 spec in
548
+ appendix D.1:
549
+ </p>
550
+ <p>
551
+ font_face ::= FONT_FACE_SYM S*
552
+ '{' S* declaration [ ';' S* declaration ]* '}' S*
553
+ </p>
554
+ <p>
555
+ This function will call SAC handlers whenever it is necessary.
556
+ </p>
557
+ <div class="variablelist"><table border="0">
558
+ <col align="left" valign="top">
559
+ <tbody>
560
+ <tr>
561
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></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>
563
+ </tr>
564
+ <tr>
565
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
566
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
567
+ </tr>
568
+ </tbody>
569
+ </table></div>
570
+ </div>
571
+ <hr>
572
+ <div class="refsect2">
573
+ <a name="cr-parser-parse-import"></a><h3>cr_parser_parse_import ()</h3>
574
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
575
+ <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>,
576
+ <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>,
577
+ <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>
578
+ <p>
579
+ Parses an 'import' declaration as defined in the css2 spec
580
+ in appendix D.1:
581
+ </p>
582
+ <p>
583
+ import ::=
584
+ @import [STRING|URI] S* [ medium [ ',' S* medium]* ]? ';' S*
585
+ </p>
586
+ <div class="variablelist"><table border="0">
587
+ <col align="left" valign="top">
588
+ <tbody>
589
+ <tr>
590
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
591
+ <td>the "this pointer" of the current instance
592
+ of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
593
+ </tr>
594
+ <tr>
595
+ <td><p><span class="term"><em class="parameter"><code>a_media_list</code></em> :</span></p></td>
596
+ <td>out parameter. A linked list of
597
+ <a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a>
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>
618
+ </tr>
619
+ </tbody>
620
+ </table></div>
621
+ </div>
622
+ <hr>
623
+ <div class="refsect2">
624
+ <a name="cr-parser-parse-media"></a><h3>cr_parser_parse_media ()</h3>
625
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>
626
+ <p>
627
+ Parses a 'media' declaration as specified in the css2 spec at
628
+ appendix D.1:
629
+ </p>
630
+ <p>
631
+ media ::= @media S* medium [ ',' S* medium ]* '{' S* ruleset* '}' S*
632
+ </p>
633
+ <p>
634
+ Note that this function calls the required sac handlers during the parsing
635
+ 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
636
+ during @media parsing.
637
+ </p>
638
+ <div class="variablelist"><table border="0">
639
+ <col align="left" valign="top">
640
+ <tbody>
641
+ <tr>
642
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
643
+ <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>
644
+ </tr>
645
+ <tr>
646
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
647
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
648
+ </tr>
649
+ </tbody>
650
+ </table></div>
651
+ </div>
652
+ <hr>
653
+ <div class="refsect2">
654
+ <a name="cr-parser-parse-page"></a><h3>cr_parser_parse_page ()</h3>
655
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>
656
+ <p>
657
+ Parses '@page' rule as specified in the css2 spec in appendix D.1:
658
+ page ::= PAGE_SYM S* IDENT? pseudo_page? S*
659
+ '{' S* declaration [ ';' S* declaration ]* '}' S*
660
+ </p>
661
+ <p>
662
+ This function also calls the relevant SAC handlers whenever it
663
+ encounters a construction that must
664
+ be reported to the calling application.
665
+ </p>
666
+ <div class="variablelist"><table border="0">
667
+ <col align="left" valign="top">
668
+ <tbody>
669
+ <tr>
670
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
671
+ <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>
672
+ </tr>
673
+ <tr>
674
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
675
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
676
+ </tr>
677
+ </tbody>
678
+ </table></div>
679
+ </div>
680
+ <hr>
681
+ <div class="refsect2">
682
+ <a name="cr-parser-parse-prio"></a><h3>cr_parser_parse_prio ()</h3>
683
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
684
+ <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>
685
+ <p>
686
+ Parses a declaration priority as defined by
687
+ the css2 grammar in appendix C:
688
+ prio: IMPORTANT_SYM S*
689
+ </p>
690
+ <div class="variablelist"><table border="0">
691
+ <col align="left" valign="top">
692
+ <tbody>
693
+ <tr>
694
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></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>
696
+ </tr>
697
+ <tr>
698
+ <td><p><span class="term"><em class="parameter"><code>a_prio</code></em> :</span></p></td>
699
+ <td>a string representing the priority.
700
+ Today, only "!important" is returned as only this
701
+ priority is defined by css2.</td>
702
+ </tr>
703
+ <tr>
704
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
705
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
706
+ </tr>
707
+ </tbody>
708
+ </table></div>
709
+ </div>
710
+ <hr>
711
+ <div class="refsect2">
712
+ <a name="cr-parser-parse-ruleset"></a><h3>cr_parser_parse_ruleset ()</h3>
713
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>
714
+ <p>
715
+ Parses a "ruleset" as defined in the css2 spec at appendix D.1.
716
+ ruleset ::= selector [ ',' S* selector ]*
717
+ '{' S* declaration? [ ';' S* declaration? ]* '}' S*;
718
+ </p>
719
+ <p>
720
+ This methods calls the the SAC handler on the relevant SAC handler
721
+ callbacks whenever it encounters some specific constructions.
722
+ 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
723
+ when which SAC handler is called.
724
+ </p>
725
+ <div class="variablelist"><table border="0">
726
+ <col align="left" valign="top">
727
+ <tbody>
728
+ <tr>
729
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
730
+ <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>
731
+ </tr>
732
+ <tr>
733
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
734
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
735
+ </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
+ <tr>
752
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
753
+ <td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
754
+ </tr>
755
+ <tr>
756
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
757
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
758
+ </tr>
759
+ </tbody>
760
+ </table></div>
761
+ </div>
762
+ <hr>
763
+ <div class="refsect2">
764
+ <a name="cr-parser-parse-term"></a><h3>cr_parser_parse_term ()</h3>
765
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
766
+ <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>
767
+ <p>
768
+ Parses a "term" as defined in the css2 spec, appendix D.1:
769
+ term ::= unary_operator? [NUMBER S* | PERCENTAGE S* | LENGTH S* |
770
+ 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
+ TODO: handle parsing of 'RGB'
775
+ </p>
776
+ <div class="variablelist"><table border="0">
777
+ <col align="left" valign="top">
778
+ <tbody>
779
+ <tr>
780
+ <td><p><span class="term"><em class="parameter"><code>a_term</code></em> :</span></p></td>
781
+ <td>out parameter. The successfully parsed term.</td>
782
+ </tr>
783
+ <tr>
784
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
785
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
786
+ </tr>
787
+ </tbody>
788
+ </table></div>
789
+ </div>
790
+ <hr>
791
+ <div class="refsect2">
792
+ <a name="cr-parser-set-default-sac-handler"></a><h3>cr_parser_set_default_sac_handler ()</h3>
793
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>
794
+ <p>
795
+ Sets the SAC handler associated to the current instance
796
+ of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a> to the default SAC handler.
797
+ </p>
798
+ <div class="variablelist"><table border="0">
799
+ <col align="left" valign="top">
800
+ <tbody>
801
+ <tr>
802
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
803
+ <td>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>.</td>
804
+ </tr>
805
+ <tr>
806
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
807
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
808
+ </tr>
809
+ </tbody>
810
+ </table></div>
811
+ </div>
812
+ <hr>
813
+ <div class="refsect2">
814
+ <a name="cr-parser-set-sac-handler"></a><h3>cr_parser_set_sac_handler ()</h3>
815
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
816
+ <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>
817
+ <p>
818
+ Sets a SAC document handler to the parser.
819
+ </p>
820
+ <div class="variablelist"><table border="0">
821
+ <col align="left" valign="top">
822
+ <tbody>
823
+ <tr>
824
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></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>
826
+ </tr>
827
+ <tr>
828
+ <td><p><span class="term"><em class="parameter"><code>a_handler</code></em> :</span></p></td>
829
+ <td>the handler to set.</td>
830
+ </tr>
831
+ <tr>
832
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
833
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
834
+ </tr>
835
+ </tbody>
836
+ </table></div>
837
+ </div>
838
+ <hr>
839
+ <div class="refsect2">
840
+ <a name="cr-parser-set-tknzr"></a><h3>cr_parser_set_tknzr ()</h3>
841
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
842
+ <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>
843
+ <div class="variablelist"><table border="0">
844
+ <col align="left" valign="top">
845
+ <tbody>
846
+ <tr>
847
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
848
+ <td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>;</td>
849
+ </tr>
850
+ <tr>
851
+ <td><p><span class="term"><em class="parameter"><code>a_tknzr</code></em> :</span></p></td>
852
+ <td>the new tokenizer.</td>
853
+ </tr>
854
+ <tr>
855
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
856
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
857
+ </tr>
858
+ </tbody>
859
+ </table></div>
860
+ </div>
861
+ <hr>
862
+ <div class="refsect2">
863
+ <a name="cr-parser-set-use-core-grammar"></a><h3>cr_parser_set_use_core_grammar ()</h3>
864
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> 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>,
865
+ <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>
866
+ <div class="variablelist"><table border="0">
867
+ <col align="left" valign="top">
868
+ <tbody>
869
+ <tr>
870
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></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>
872
+ </tr>
873
+ <tr>
874
+ <td><p><span class="term"><em class="parameter"><code>a_use_core_grammar</code></em> :</span></p></td>
875
+ <td>where to parse against the css core grammar.</td>
876
+ </tr>
877
+ <tr>
878
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
879
+ <td>CR_OK upon succesful completion, an error code otherwise.</td>
880
+ </tr>
881
+ </tbody>
882
+ </table></div>
883
+ </div>
884
+ <hr>
885
+ <div class="refsect2">
886
+ <a name="cr-parser-try-to-skip-spaces-and-comments"></a><h3>cr_parser_try_to_skip_spaces_and_comments ()</h3>
887
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_parser_try_to_skip_spaces_and_comments
888
+ (<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>
889
+ <p>
890
+ Same as <code class="function">cr_parser_try_to_skip_spaces()</code> but this one skips
891
+ spaces and comments.
892
+ </p>
893
+ <div class="variablelist"><table border="0">
894
+ <col align="left" valign="top">
895
+ <tbody>
896
+ <tr>
897
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
898
+ <td>the current instance of <a class="link" href="libcroco-cr-parser.html#CRParser" title="struct CRParser"><span class="type">CRParser</span></a>.</td>
899
+ </tr>
900
+ <tr>
901
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
902
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
903
+ </tr>
904
+ </tbody>
905
+ </table></div>
906
+ </div>
907
+ </div>
908
+ </div>
909
+ <div class="footer">
910
+ <hr>
911
+ Generated by GTK-Doc V1.18</div>
912
+ </body>
913
+ </html>