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,1102 @@
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-input</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-fonts.html" title="cr-fonts">
10
+ <link rel="next" href="libcroco-cr-num.html" title="cr-num">
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-fonts.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-num.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-input.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#libcroco-cr-input.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-input"></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-input.top_of_page"></a>cr-input</span></h2>
34
+ <p>cr-input</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="libcroco-cr-input.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">struct <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput">CRInput</a>;
41
+ struct <a class="link" href="libcroco-cr-input.html#CRInputPos" title="struct CRInputPos">CRInputPos</a>;
42
+ <a class="link" href="libcroco-cr-input.html#CRInputPriv" title="CRInputPriv">CRInputPriv</a>;
43
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-consume-char" title="cr_input_consume_char ()">cr_input_consume_char</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
44
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> a_char</code></em>);
45
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-consume-chars" title="cr_input_consume_chars ()">cr_input_consume_chars</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
46
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> a_char</code></em>,
47
+ <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_nb_char</code></em>);
48
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-consume-white-spaces" title="cr_input_consume_white_spaces ()">cr_input_consume_white_spaces</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
49
+ <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_nb_chars</code></em>);
50
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-input.html#cr-input-destroy" title="cr_input_destroy ()">cr_input_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>);
51
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-end-of-input" title="cr_input_end_of_input ()">cr_input_end_of_input</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
52
+ <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_end_of_input</code></em>);
53
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="libcroco-cr-input.html#cr-input-get-byte-addr" title="cr_input_get_byte_addr ()">cr_input_get_byte_addr</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
54
+ <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_offset</code></em>);
55
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-column-num" title="cr_input_get_column_num ()">cr_input_get_column_num</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
56
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> *a_col</code></em>);
57
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-cur-byte-addr" title="cr_input_get_cur_byte_addr ()">cr_input_get_cur_byte_addr</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
58
+ <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_offset</code></em>);
59
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-cur-index" title="cr_input_get_cur_index ()">cr_input_get_cur_index</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
60
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> *a_index</code></em>);
61
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-cur-pos" title="cr_input_get_cur_pos ()">cr_input_get_cur_pos</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
62
+ <em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInputPos" title="struct CRInputPos"><span class="type">CRInputPos</span></a> *a_pos</code></em>);
63
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-end-of-file" title="cr_input_get_end_of_file ()">cr_input_get_end_of_file</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
64
+ <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_eof</code></em>);
65
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-end-of-line" title="cr_input_get_end_of_line ()">cr_input_get_end_of_line</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
66
+ <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_eol</code></em>);
67
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-line-num" title="cr_input_get_line_num ()">cr_input_get_line_num</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
68
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> *a_line_num</code></em>);
69
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="returnvalue">glong</span></a> <a class="link" href="libcroco-cr-input.html#cr-input-get-nb-bytes-left" title="cr_input_get_nb_bytes_left ()">cr_input_get_nb_bytes_left</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>);
70
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-get-parsing-location" title="cr_input_get_parsing_location ()">cr_input_get_parsing_location</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
71
+ <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>);
72
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-increment-col-num" title="cr_input_increment_col_num ()">cr_input_increment_col_num</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
73
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_increment</code></em>);
74
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-increment-line-num" title="cr_input_increment_line_num ()">cr_input_increment_line_num</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
75
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_increment</code></em>);
76
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> * <a class="link" href="libcroco-cr-input.html#cr-input-new-from-buf" title="cr_input_new_from_buf ()">cr_input_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>,
77
+ <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>,
78
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>,
79
+ <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>);
80
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> * <a class="link" href="libcroco-cr-input.html#cr-input-new-from-uri" title="cr_input_new_from_uri ()">cr_input_new_from_uri</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *a_file_uri</code></em>,
81
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
82
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-peek-byte" title="cr_input_peek_byte ()">cr_input_peek_byte</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
83
+ <em class="parameter"><code><span class="type">enum CRSeekPos</span> a_origin</code></em>,
84
+ <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_offset</code></em>,
85
+ <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_byte</code></em>);
86
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> <a class="link" href="libcroco-cr-input.html#cr-input-peek-byte2" title="cr_input_peek_byte2 ()">cr_input_peek_byte2</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
87
+ <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_offset</code></em>,
88
+ <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_eof</code></em>);
89
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-peek-char" title="cr_input_peek_char ()">cr_input_peek_char</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
90
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *a_char</code></em>);
91
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-read-byte" title="cr_input_read_byte ()">cr_input_read_byte</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
92
+ <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_byte</code></em>);
93
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-read-char" title="cr_input_read_char ()">cr_input_read_char</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
94
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *a_char</code></em>);
95
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-input.html#cr-input-ref" title="cr_input_ref ()">cr_input_ref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>);
96
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-seek-index" title="cr_input_seek_index ()">cr_input_seek_index</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
97
+ <em class="parameter"><code><span class="type">enum CRSeekPos</span> a_origin</code></em>,
98
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> a_pos</code></em>);
99
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-set-column-num" title="cr_input_set_column_num ()">cr_input_set_column_num</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
100
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_col</code></em>);
101
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-set-cur-index" title="cr_input_set_cur_index ()">cr_input_set_cur_index</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
102
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_index</code></em>);
103
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-set-cur-pos" title="cr_input_set_cur_pos ()">cr_input_set_cur_pos</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
104
+ <em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInputPos" title="struct CRInputPos"><span class="type">CRInputPos</span></a> const *a_pos</code></em>);
105
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-set-end-of-file" title="cr_input_set_end_of_file ()">cr_input_set_end_of_file</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
106
+ <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_eof</code></em>);
107
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-set-end-of-line" title="cr_input_set_end_of_line ()">cr_input_set_end_of_line</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
108
+ <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_eol</code></em>);
109
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-input.html#cr-input-set-line-num" title="cr_input_set_line_num ()">cr_input_set_line_num</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
110
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_line_num</code></em>);
111
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libcroco-cr-input.html#cr-input-unref" title="cr_input_unref ()">cr_input_unref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>);
112
+ </pre>
113
+ </div>
114
+ <div class="refsect1">
115
+ <a name="libcroco-cr-input.description"></a><h2>Description</h2>
116
+ <p>
117
+ </p>
118
+ </div>
119
+ <div class="refsect1">
120
+ <a name="libcroco-cr-input.details"></a><h2>Details</h2>
121
+ <div class="refsect2">
122
+ <a name="CRInput"></a><h3>struct CRInput</h3>
123
+ <pre class="programlisting">struct CRInput {
124
+ CRInputPriv *priv ;
125
+ };
126
+ </pre>
127
+ <p>
128
+ </p>
129
+ </div>
130
+ <hr>
131
+ <div class="refsect2">
132
+ <a name="CRInputPos"></a><h3>struct CRInputPos</h3>
133
+ <pre class="programlisting">struct CRInputPos {
134
+ glong line ;
135
+ glong col ;
136
+ gboolean end_of_file ;
137
+ gboolean end_of_line ;
138
+ glong next_byte_index ;
139
+ };
140
+ </pre>
141
+ <p>
142
+ </p>
143
+ </div>
144
+ <hr>
145
+ <div class="refsect2">
146
+ <a name="CRInputPriv"></a><h3>CRInputPriv</h3>
147
+ <pre class="programlisting">typedef struct _CRInputPriv CRInputPriv;</pre>
148
+ <p>
149
+ </p>
150
+ </div>
151
+ <hr>
152
+ <div class="refsect2">
153
+ <a name="cr-input-consume-char"></a><h3>cr_input_consume_char ()</h3>
154
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_consume_char (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
155
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> a_char</code></em>);</pre>
156
+ <p>
157
+ Consumes the next character of the input stream if
158
+ and only if that character equals a_char.
159
+ </p>
160
+ <div class="variablelist"><table border="0">
161
+ <col align="left" valign="top">
162
+ <tbody>
163
+ <tr>
164
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
165
+ <td>the this pointer.</td>
166
+ </tr>
167
+ <tr>
168
+ <td><p><span class="term"><em class="parameter"><code>a_char</code></em> :</span></p></td>
169
+ <td>the character to consume. If set to zero,
170
+ consumes any character.</td>
171
+ </tr>
172
+ <tr>
173
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
174
+ <td>CR_OK upon successful completion, CR_PARSING_ERROR if
175
+ next char is different from a_char, an other error code otherwise</td>
176
+ </tr>
177
+ </tbody>
178
+ </table></div>
179
+ </div>
180
+ <hr>
181
+ <div class="refsect2">
182
+ <a name="cr-input-consume-chars"></a><h3>cr_input_consume_chars ()</h3>
183
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_consume_chars (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
184
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> a_char</code></em>,
185
+ <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_nb_char</code></em>);</pre>
186
+ <p>
187
+ Consumes up to a_nb_char occurences of the next contiguous characters
188
+ which equal a_char. Note that the next character of the input stream
189
+ *MUST* equal a_char to trigger the consumption, or else, the error
190
+ code CR_PARSING_ERROR is returned.
191
+ If the number of contiguous characters that equals a_char is less than
192
+ a_nb_char, then this function consumes all the characters it can consume.
193
+ </p>
194
+ <div class="variablelist"><table border="0">
195
+ <col align="left" valign="top">
196
+ <tbody>
197
+ <tr>
198
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
199
+ <td>the this pointer of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
200
+ </tr>
201
+ <tr>
202
+ <td><p><span class="term"><em class="parameter"><code>a_char</code></em> :</span></p></td>
203
+ <td>the character to consume.</td>
204
+ </tr>
205
+ <tr>
206
+ <td><p><span class="term"><em class="parameter"><code>a_nb_char</code></em> :</span></p></td>
207
+ <td>in/out parameter. The number of characters to consume.
208
+ If set to a negative value, the function will consume all the occurences
209
+ of a_char found.
210
+ After return, if the return value equals CR_OK, this variable contains
211
+ the number of characters actually consumed.</td>
212
+ </tr>
213
+ <tr>
214
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
215
+ <td>CR_OK if at least one character has been consumed, an error code
216
+ otherwise.</td>
217
+ </tr>
218
+ </tbody>
219
+ </table></div>
220
+ </div>
221
+ <hr>
222
+ <div class="refsect2">
223
+ <a name="cr-input-consume-white-spaces"></a><h3>cr_input_consume_white_spaces ()</h3>
224
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_consume_white_spaces (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
225
+ <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_nb_chars</code></em>);</pre>
226
+ <p>
227
+ Same as <a class="link" href="libcroco-cr-input.html#cr-input-consume-chars" title="cr_input_consume_chars ()"><code class="function">cr_input_consume_chars()</code></a> but this one consumes white
228
+ spaces.
229
+ </p>
230
+ <div class="variablelist"><table border="0">
231
+ <col align="left" valign="top">
232
+ <tbody>
233
+ <tr>
234
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
235
+ <td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
236
+ </tr>
237
+ <tr>
238
+ <td><p><span class="term"><em class="parameter"><code>a_nb_chars</code></em> :</span></p></td>
239
+ <td>in/out parameter. The number of white spaces to
240
+ consume. After return, holds the number of white spaces actually consumed.</td>
241
+ </tr>
242
+ <tr>
243
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
244
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
245
+ </tr>
246
+ </tbody>
247
+ </table></div>
248
+ </div>
249
+ <hr>
250
+ <div class="refsect2">
251
+ <a name="cr-input-destroy"></a><h3>cr_input_destroy ()</h3>
252
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_input_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>);</pre>
253
+ <p>
254
+ The destructor of the <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> class.
255
+ </p>
256
+ <div class="variablelist"><table border="0">
257
+ <col align="left" valign="top">
258
+ <tbody><tr>
259
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
260
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
261
+ </tr></tbody>
262
+ </table></div>
263
+ </div>
264
+ <hr>
265
+ <div class="refsect2">
266
+ <a name="cr-input-end-of-input"></a><h3>cr_input_end_of_input ()</h3>
267
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_end_of_input (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
268
+ <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_end_of_input</code></em>);</pre>
269
+ <p>
270
+ Tests wether the current instance of
271
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> has reached its input buffer.
272
+ </p>
273
+ <div class="variablelist"><table border="0">
274
+ <col align="left" valign="top">
275
+ <tbody>
276
+ <tr>
277
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
278
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
279
+ </tr>
280
+ <tr>
281
+ <td><p><span class="term"><em class="parameter"><code>a_end_of_input</code></em> :</span></p></td>
282
+ <td>out parameter. Is set to TRUE if
283
+ the current instance has reached the end of its input buffer,
284
+ FALSE otherwise.</td>
285
+ </tr>
286
+ <tr>
287
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
288
+ <td>CR_OK upon successful completion, an error code otherwise.
289
+ Note that all the out parameters of this method are valid if
290
+ and only if this method returns CR_OK.</td>
291
+ </tr>
292
+ </tbody>
293
+ </table></div>
294
+ </div>
295
+ <hr>
296
+ <div class="refsect2">
297
+ <a name="cr-input-get-byte-addr"></a><h3>cr_input_get_byte_addr ()</h3>
298
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * cr_input_get_byte_addr (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
299
+ <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_offset</code></em>);</pre>
300
+ <p>
301
+ Gets the memory address of the byte located at a given offset
302
+ in the input stream.
303
+ </p>
304
+ <div class="variablelist"><table border="0">
305
+ <col align="left" valign="top">
306
+ <tbody>
307
+ <tr>
308
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
309
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
310
+ </tr>
311
+ <tr>
312
+ <td><p><span class="term"><em class="parameter"><code>a_offset</code></em> :</span></p></td>
313
+ <td>the offset of the byte in the input stream starting
314
+ from the beginning of the stream.</td>
315
+ </tr>
316
+ <tr>
317
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
318
+ <td>the address, otherwise NULL if an error occured.</td>
319
+ </tr>
320
+ </tbody>
321
+ </table></div>
322
+ </div>
323
+ <hr>
324
+ <div class="refsect2">
325
+ <a name="cr-input-get-column-num"></a><h3>cr_input_get_column_num ()</h3>
326
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_column_num (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
327
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> *a_col</code></em>);</pre>
328
+ <p>
329
+ Getter of the current column number.
330
+ </p>
331
+ <div class="variablelist"><table border="0">
332
+ <col align="left" valign="top">
333
+ <tbody>
334
+ <tr>
335
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
336
+ <td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
337
+ </tr>
338
+ <tr>
339
+ <td><p><span class="term"><em class="parameter"><code>a_col</code></em> :</span></p></td>
340
+ <td>out parameter</td>
341
+ </tr>
342
+ <tr>
343
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
344
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
345
+ </tr>
346
+ </tbody>
347
+ </table></div>
348
+ </div>
349
+ <hr>
350
+ <div class="refsect2">
351
+ <a name="cr-input-get-cur-byte-addr"></a><h3>cr_input_get_cur_byte_addr ()</h3>
352
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_cur_byte_addr (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
353
+ <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_offset</code></em>);</pre>
354
+ <p>
355
+ Gets the address of the current character pointer.
356
+ </p>
357
+ <div class="variablelist"><table border="0">
358
+ <col align="left" valign="top">
359
+ <tbody>
360
+ <tr>
361
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
362
+ <td>the current input stream</td>
363
+ </tr>
364
+ <tr>
365
+ <td><p><span class="term"><em class="parameter"><code>a_offset</code></em> :</span></p></td>
366
+ <td>out parameter. The returned address.</td>
367
+ </tr>
368
+ <tr>
369
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
370
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
371
+ </tr>
372
+ </tbody>
373
+ </table></div>
374
+ </div>
375
+ <hr>
376
+ <div class="refsect2">
377
+ <a name="cr-input-get-cur-index"></a><h3>cr_input_get_cur_index ()</h3>
378
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_cur_index (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
379
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> *a_index</code></em>);</pre>
380
+ <p>
381
+ Getter of the next byte index.
382
+ It actually returns the index of the
383
+ next byte to be read.
384
+ </p>
385
+ <div class="variablelist"><table border="0">
386
+ <col align="left" valign="top">
387
+ <tbody>
388
+ <tr>
389
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
390
+ <td>the "this pointer" of the current instance of
391
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>
392
+ </td>
393
+ </tr>
394
+ <tr>
395
+ <td><p><span class="term"><em class="parameter"><code>a_index</code></em> :</span></p></td>
396
+ <td>out parameter. The returned index.</td>
397
+ </tr>
398
+ <tr>
399
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
400
+ <td>CR_OK upon successful completion, an error code
401
+ otherwise.</td>
402
+ </tr>
403
+ </tbody>
404
+ </table></div>
405
+ </div>
406
+ <hr>
407
+ <div class="refsect2">
408
+ <a name="cr-input-get-cur-pos"></a><h3>cr_input_get_cur_pos ()</h3>
409
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_cur_pos (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
410
+ <em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInputPos" title="struct CRInputPos"><span class="type">CRInputPos</span></a> *a_pos</code></em>);</pre>
411
+ <p>
412
+ Gets the position of the "current byte index" which
413
+ is basically the position of the last returned byte in the
414
+ input stream.
415
+ </p>
416
+ <div class="variablelist"><table border="0">
417
+ <col align="left" valign="top">
418
+ <tbody>
419
+ <tr>
420
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
421
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
422
+ </tr>
423
+ <tr>
424
+ <td><p><span class="term"><em class="parameter"><code>a_pos</code></em> :</span></p></td>
425
+ <td>out parameter. The returned position.</td>
426
+ </tr>
427
+ <tr>
428
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
429
+ <td>CR_OK upon successful completion. Otherwise,
430
+ CR_BAD_PARAMETER_ERROR if at least one of the arguments is invalid.
431
+ CR_START_OF_INPUT if no call to either <a class="link" href="libcroco-cr-input.html#cr-input-read-byte" title="cr_input_read_byte ()"><code class="function">cr_input_read_byte()</code></a>
432
+ or <a class="link" href="libcroco-cr-input.html#cr-input-seek-index" title="cr_input_seek_index ()"><code class="function">cr_input_seek_index()</code></a> have been issued before calling
433
+ <a class="link" href="libcroco-cr-input.html#cr-input-get-cur-pos" title="cr_input_get_cur_pos ()"><code class="function">cr_input_get_cur_pos()</code></a>
434
+ Note that the out parameters of this function are valid if and only if this
435
+ function returns CR_OK.</td>
436
+ </tr>
437
+ </tbody>
438
+ </table></div>
439
+ </div>
440
+ <hr>
441
+ <div class="refsect2">
442
+ <a name="cr-input-get-end-of-file"></a><h3>cr_input_get_end_of_file ()</h3>
443
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_end_of_file (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
444
+ <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_eof</code></em>);</pre>
445
+ <p>
446
+ Gets the end of file flag.
447
+ </p>
448
+ <div class="variablelist"><table border="0">
449
+ <col align="left" valign="top">
450
+ <tbody>
451
+ <tr>
452
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
453
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
454
+ </tr>
455
+ <tr>
456
+ <td><p><span class="term"><em class="parameter"><code>a_eof</code></em> :</span></p></td>
457
+ <td>out parameter the place to put the end of
458
+ file flag.</td>
459
+ </tr>
460
+ <tr>
461
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
462
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
463
+ </tr>
464
+ </tbody>
465
+ </table></div>
466
+ </div>
467
+ <hr>
468
+ <div class="refsect2">
469
+ <a name="cr-input-get-end-of-line"></a><h3>cr_input_get_end_of_line ()</h3>
470
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_end_of_line (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
471
+ <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_eol</code></em>);</pre>
472
+ <p>
473
+ Gets the end of line flag of the current input.
474
+ </p>
475
+ <div class="variablelist"><table border="0">
476
+ <col align="left" valign="top">
477
+ <tbody>
478
+ <tr>
479
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
480
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>
481
+ </td>
482
+ </tr>
483
+ <tr>
484
+ <td><p><span class="term"><em class="parameter"><code>a_eol</code></em> :</span></p></td>
485
+ <td>out parameter. The place to put
486
+ the returned flag</td>
487
+ </tr>
488
+ <tr>
489
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
490
+ <td>CR_OK upon successful completion, an error code
491
+ otherwise.</td>
492
+ </tr>
493
+ </tbody>
494
+ </table></div>
495
+ </div>
496
+ <hr>
497
+ <div class="refsect2">
498
+ <a name="cr-input-get-line-num"></a><h3>cr_input_get_line_num ()</h3>
499
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_line_num (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
500
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> *a_line_num</code></em>);</pre>
501
+ <p>
502
+ Getter of the current line number.
503
+ </p>
504
+ <div class="variablelist"><table border="0">
505
+ <col align="left" valign="top">
506
+ <tbody>
507
+ <tr>
508
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
509
+ <td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
510
+ </tr>
511
+ <tr>
512
+ <td><p><span class="term"><em class="parameter"><code>a_line_num</code></em> :</span></p></td>
513
+ <td>the returned line number.</td>
514
+ </tr>
515
+ <tr>
516
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
517
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
518
+ </tr>
519
+ </tbody>
520
+ </table></div>
521
+ </div>
522
+ <hr>
523
+ <div class="refsect2">
524
+ <a name="cr-input-get-nb-bytes-left"></a><h3>cr_input_get_nb_bytes_left ()</h3>
525
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="returnvalue">glong</span></a> cr_input_get_nb_bytes_left (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>);</pre>
526
+ <div class="variablelist"><table border="0">
527
+ <col align="left" valign="top">
528
+ <tbody>
529
+ <tr>
530
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
531
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
532
+ </tr>
533
+ <tr>
534
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
535
+ <td>the number of bytes left in the input stream
536
+ before the end, -1 in case of error.</td>
537
+ </tr>
538
+ </tbody>
539
+ </table></div>
540
+ </div>
541
+ <hr>
542
+ <div class="refsect2">
543
+ <a name="cr-input-get-parsing-location"></a><h3>cr_input_get_parsing_location ()</h3>
544
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_get_parsing_location (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
545
+ <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>
546
+ <p>
547
+ Gets the current parsing location.
548
+ The Parsing location is a public datastructure that
549
+ represents the current line/column/byte offset/ in the input
550
+ stream.
551
+ </p>
552
+ <div class="variablelist"><table border="0">
553
+ <col align="left" valign="top">
554
+ <tbody>
555
+ <tr>
556
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
557
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>
558
+ </td>
559
+ </tr>
560
+ <tr>
561
+ <td><p><span class="term"><em class="parameter"><code>a_loc</code></em> :</span></p></td>
562
+ <td>the set parsing location.</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 successful completion, an error
567
+ code otherwise.</td>
568
+ </tr>
569
+ </tbody>
570
+ </table></div>
571
+ </div>
572
+ <hr>
573
+ <div class="refsect2">
574
+ <a name="cr-input-increment-col-num"></a><h3>cr_input_increment_col_num ()</h3>
575
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_increment_col_num (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
576
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_increment</code></em>);</pre>
577
+ <p>
578
+ Increments the current column number.
579
+ </p>
580
+ <div class="variablelist"><table border="0">
581
+ <col align="left" valign="top">
582
+ <tbody>
583
+ <tr>
584
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
585
+ <td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
586
+ </tr>
587
+ <tr>
588
+ <td><p><span class="term"><em class="parameter"><code>a_increment</code></em> :</span></p></td>
589
+ <td>the increment to add to the column number.</td>
590
+ </tr>
591
+ <tr>
592
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
593
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
594
+ </tr>
595
+ </tbody>
596
+ </table></div>
597
+ </div>
598
+ <hr>
599
+ <div class="refsect2">
600
+ <a name="cr-input-increment-line-num"></a><h3>cr_input_increment_line_num ()</h3>
601
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_increment_line_num (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
602
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_increment</code></em>);</pre>
603
+ <p>
604
+ Increments the current line number.
605
+ </p>
606
+ <div class="variablelist"><table border="0">
607
+ <col align="left" valign="top">
608
+ <tbody>
609
+ <tr>
610
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
611
+ <td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
612
+ </tr>
613
+ <tr>
614
+ <td><p><span class="term"><em class="parameter"><code>a_increment</code></em> :</span></p></td>
615
+ <td>the increment to add to the line number.</td>
616
+ </tr>
617
+ <tr>
618
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
619
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
620
+ </tr>
621
+ </tbody>
622
+ </table></div>
623
+ </div>
624
+ <hr>
625
+ <div class="refsect2">
626
+ <a name="cr-input-new-from-buf"></a><h3>cr_input_new_from_buf ()</h3>
627
+ <pre class="programlisting"><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> * cr_input_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>,
628
+ <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>,
629
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>,
630
+ <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>
631
+ <p>
632
+ Creates a new input stream from a memory buffer.
633
+ </p>
634
+ <div class="variablelist"><table border="0">
635
+ <col align="left" valign="top">
636
+ <tbody>
637
+ <tr>
638
+ <td><p><span class="term"><em class="parameter"><code>a_buf</code></em> :</span></p></td>
639
+ <td>the memory buffer to create the input stream from.
640
+ The <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> keeps this pointer so user should not free it !.</td>
641
+ </tr>
642
+ <tr>
643
+ <td><p><span class="term"><em class="parameter"><code>a_len</code></em> :</span></p></td>
644
+ <td>the size of the input buffer.</td>
645
+ </tr>
646
+ <tr>
647
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
648
+ <td>the buffer's encoding.</td>
649
+ </tr>
650
+ <tr>
651
+ <td><p><span class="term"><em class="parameter"><code>a_free_buf</code></em> :</span></p></td>
652
+ <td>if set to TRUE, this a_buf will be freed
653
+ at the destruction of this instance. If set to false, it is up
654
+ to the caller to free it.</td>
655
+ </tr>
656
+ <tr>
657
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
658
+ <td>the newly built instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
659
+ </tr>
660
+ </tbody>
661
+ </table></div>
662
+ </div>
663
+ <hr>
664
+ <div class="refsect2">
665
+ <a name="cr-input-new-from-uri"></a><h3>cr_input_new_from_uri ()</h3>
666
+ <pre class="programlisting"><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> * cr_input_new_from_uri (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *a_file_uri</code></em>,
667
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
668
+ <p>
669
+ Creates a new input stream from
670
+ a file.
671
+ </p>
672
+ <div class="variablelist"><table border="0">
673
+ <col align="left" valign="top">
674
+ <tbody>
675
+ <tr>
676
+ <td><p><span class="term"><em class="parameter"><code>a_file_uri</code></em> :</span></p></td>
677
+ <td>the file to create *the input stream from.</td>
678
+ </tr>
679
+ <tr>
680
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
681
+ <td>the encoding of the file *to create the input from.</td>
682
+ </tr>
683
+ <tr>
684
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
685
+ <td>the newly created input stream if
686
+ this method could read the file and create it,
687
+ NULL otherwise.</td>
688
+ </tr>
689
+ </tbody>
690
+ </table></div>
691
+ </div>
692
+ <hr>
693
+ <div class="refsect2">
694
+ <a name="cr-input-peek-byte"></a><h3>cr_input_peek_byte ()</h3>
695
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_peek_byte (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
696
+ <em class="parameter"><code><span class="type">enum CRSeekPos</span> a_origin</code></em>,
697
+ <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_offset</code></em>,
698
+ <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_byte</code></em>);</pre>
699
+ <p>
700
+ Gets a byte from the input stream,
701
+ starting from the current position in the input stream.
702
+ Unlike <code class="function">cr_input_peek_next_byte()</code> this method
703
+ does not update the state of the current input stream.
704
+ Subsequent calls to cr_input_peek_byte with the same arguments
705
+ will return the same byte.
706
+ </p>
707
+ <div class="variablelist"><table border="0">
708
+ <col align="left" valign="top">
709
+ <tbody>
710
+ <tr>
711
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
712
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
713
+ </tr>
714
+ <tr>
715
+ <td><p><span class="term"><em class="parameter"><code>a_origin</code></em> :</span></p></td>
716
+ <td>the origin to consider in the calculation
717
+ of the position of the byte to peek.</td>
718
+ </tr>
719
+ <tr>
720
+ <td><p><span class="term"><em class="parameter"><code>a_offset</code></em> :</span></p></td>
721
+ <td>the offset of the byte to peek, starting from
722
+ the origin specified by a_origin.</td>
723
+ </tr>
724
+ <tr>
725
+ <td><p><span class="term"><em class="parameter"><code>a_byte</code></em> :</span></p></td>
726
+ <td>out parameter the peeked byte.</td>
727
+ </tr>
728
+ <tr>
729
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
730
+ <td>CR_OK upon successful completion or,
731
+ CR_BAD_PARAM_ERROR if at least one of the parameters is invalid;
732
+ CR_OUT_OF_BOUNDS_ERROR if the indexed byte is out of bounds.</td>
733
+ </tr>
734
+ </tbody>
735
+ </table></div>
736
+ </div>
737
+ <hr>
738
+ <div class="refsect2">
739
+ <a name="cr-input-peek-byte2"></a><h3>cr_input_peek_byte2 ()</h3>
740
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> cr_input_peek_byte2 (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
741
+ <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_offset</code></em>,
742
+ <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_eof</code></em>);</pre>
743
+ <p>
744
+ Same as <a class="link" href="libcroco-cr-input.html#cr-input-peek-byte" title="cr_input_peek_byte ()"><code class="function">cr_input_peek_byte()</code></a> but with a simplified
745
+ interface.
746
+ </p>
747
+ <div class="variablelist"><table border="0">
748
+ <col align="left" valign="top">
749
+ <tbody>
750
+ <tr>
751
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
752
+ <td>the current byte input stream.</td>
753
+ </tr>
754
+ <tr>
755
+ <td><p><span class="term"><em class="parameter"><code>a_offset</code></em> :</span></p></td>
756
+ <td>the offset of the byte to peek, starting
757
+ from the current input position pointer.</td>
758
+ </tr>
759
+ <tr>
760
+ <td><p><span class="term"><em class="parameter"><code>a_eof</code></em> :</span></p></td>
761
+ <td>out parameter. Is set to true is we reach end of
762
+ stream. If set to NULL by the caller, this parameter is not taken
763
+ in account.</td>
764
+ </tr>
765
+ <tr>
766
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
767
+ <td>the read byte or 0 if something bad happened.</td>
768
+ </tr>
769
+ </tbody>
770
+ </table></div>
771
+ </div>
772
+ <hr>
773
+ <div class="refsect2">
774
+ <a name="cr-input-peek-char"></a><h3>cr_input_peek_char ()</h3>
775
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_peek_char (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> const *a_this</code></em>,
776
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *a_char</code></em>);</pre>
777
+ <p>
778
+ Same as <a class="link" href="libcroco-cr-input.html#cr-input-read-char" title="cr_input_read_char ()"><code class="function">cr_input_read_char()</code></a> but does not update the
779
+ internal state of the input stream. The next call
780
+ to <a class="link" href="libcroco-cr-input.html#cr-input-peek-char" title="cr_input_peek_char ()"><code class="function">cr_input_peek_char()</code></a> or <a class="link" href="libcroco-cr-input.html#cr-input-read-char" title="cr_input_read_char ()"><code class="function">cr_input_read_char()</code></a> will thus
781
+ return the same character as the current one.
782
+ </p>
783
+ <div class="variablelist"><table border="0">
784
+ <col align="left" valign="top">
785
+ <tbody>
786
+ <tr>
787
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
788
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
789
+ </tr>
790
+ <tr>
791
+ <td><p><span class="term"><em class="parameter"><code>a_char</code></em> :</span></p></td>
792
+ <td>out parameter. The returned character.</td>
793
+ </tr>
794
+ <tr>
795
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
796
+ <td>CR_OK upon successful completion, an error code
797
+ otherwise.</td>
798
+ </tr>
799
+ </tbody>
800
+ </table></div>
801
+ </div>
802
+ <hr>
803
+ <div class="refsect2">
804
+ <a name="cr-input-read-byte"></a><h3>cr_input_read_byte ()</h3>
805
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_read_byte (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
806
+ <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_byte</code></em>);</pre>
807
+ <p>
808
+ Gets the next byte of the input.
809
+ Updates the state of the input so that
810
+ the next invocation of this method returns
811
+ the next coming byte.
812
+ </p>
813
+ <div class="variablelist"><table border="0">
814
+ <col align="left" valign="top">
815
+ <tbody>
816
+ <tr>
817
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
818
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
819
+ </tr>
820
+ <tr>
821
+ <td><p><span class="term"><em class="parameter"><code>a_byte</code></em> :</span></p></td>
822
+ <td>out parameter the returned byte.</td>
823
+ </tr>
824
+ <tr>
825
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
826
+ <td>CR_OK upon successful completion, an error code
827
+ otherwise. All the out parameters of this method are valid if
828
+ and only if this method returns CR_OK.</td>
829
+ </tr>
830
+ </tbody>
831
+ </table></div>
832
+ </div>
833
+ <hr>
834
+ <div class="refsect2">
835
+ <a name="cr-input-read-char"></a><h3>cr_input_read_char ()</h3>
836
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_read_char (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
837
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *a_char</code></em>);</pre>
838
+ <p>
839
+ Reads an unicode character from the current instance of
840
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.
841
+ </p>
842
+ <div class="variablelist"><table border="0">
843
+ <col align="left" valign="top">
844
+ <tbody>
845
+ <tr>
846
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
847
+ <td>the current instance of CRInput.</td>
848
+ </tr>
849
+ <tr>
850
+ <td><p><span class="term"><em class="parameter"><code>a_char</code></em> :</span></p></td>
851
+ <td>out parameter. The read character.</td>
852
+ </tr>
853
+ <tr>
854
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
855
+ <td>CR_OK upon successful completion, an error code
856
+ otherwise.</td>
857
+ </tr>
858
+ </tbody>
859
+ </table></div>
860
+ </div>
861
+ <hr>
862
+ <div class="refsect2">
863
+ <a name="cr-input-ref"></a><h3>cr_input_ref ()</h3>
864
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_input_ref (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>);</pre>
865
+ <p>
866
+ Increments the reference count of the current
867
+ instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.
868
+ </p>
869
+ <div class="variablelist"><table border="0">
870
+ <col align="left" valign="top">
871
+ <tbody><tr>
872
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
873
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
874
+ </tr></tbody>
875
+ </table></div>
876
+ </div>
877
+ <hr>
878
+ <div class="refsect2">
879
+ <a name="cr-input-seek-index"></a><h3>cr_input_seek_index ()</h3>
880
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_seek_index (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
881
+ <em class="parameter"><code><span class="type">enum CRSeekPos</span> a_origin</code></em>,
882
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> a_pos</code></em>);</pre>
883
+ <p>
884
+ Sets the "current byte index" of the current instance
885
+ of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>. Next call to <code class="function">cr_input_get_byte()</code> will return
886
+ the byte next after the new "current byte index".
887
+ </p>
888
+ <div class="variablelist"><table border="0">
889
+ <col align="left" valign="top">
890
+ <tbody>
891
+ <tr>
892
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
893
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
894
+ </tr>
895
+ <tr>
896
+ <td><p><span class="term"><em class="parameter"><code>a_origin</code></em> :</span></p></td>
897
+ <td>the origin to consider during the calculation
898
+ of the absolute position of the new "current byte index".</td>
899
+ </tr>
900
+ <tr>
901
+ <td><p><span class="term"><em class="parameter"><code>a_pos</code></em> :</span></p></td>
902
+ <td>the relative offset of the new "current byte index."
903
+ This offset is relative to the origin a_origin.</td>
904
+ </tr>
905
+ <tr>
906
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
907
+ <td>CR_OK upon successful completion otherwise returns
908
+ CR_BAD_PARAM_ERROR if at least one of the parameters is not valid
909
+ or CR_OUT_BOUNDS_ERROR in case of error.</td>
910
+ </tr>
911
+ </tbody>
912
+ </table></div>
913
+ </div>
914
+ <hr>
915
+ <div class="refsect2">
916
+ <a name="cr-input-set-column-num"></a><h3>cr_input_set_column_num ()</h3>
917
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_set_column_num (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
918
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_col</code></em>);</pre>
919
+ <p>
920
+ Setter of the current column number.
921
+ </p>
922
+ <div class="variablelist"><table border="0">
923
+ <col align="left" valign="top">
924
+ <tbody>
925
+ <tr>
926
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
927
+ <td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
928
+ </tr>
929
+ <tr>
930
+ <td><p><span class="term"><em class="parameter"><code>a_col</code></em> :</span></p></td>
931
+ <td>the new column number.</td>
932
+ </tr>
933
+ <tr>
934
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
935
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
936
+ </tr>
937
+ </tbody>
938
+ </table></div>
939
+ </div>
940
+ <hr>
941
+ <div class="refsect2">
942
+ <a name="cr-input-set-cur-index"></a><h3>cr_input_set_cur_index ()</h3>
943
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_set_cur_index (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
944
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_index</code></em>);</pre>
945
+ <p>
946
+ Setter of the next byte index.
947
+ It sets the index of the next byte to be read.
948
+ </p>
949
+ <div class="variablelist"><table border="0">
950
+ <col align="left" valign="top">
951
+ <tbody>
952
+ <tr>
953
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
954
+ <td>the "this pointer" of the current instance
955
+ of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> .</td>
956
+ </tr>
957
+ <tr>
958
+ <td><p><span class="term"><em class="parameter"><code>a_index</code></em> :</span></p></td>
959
+ <td>the new index to set.</td>
960
+ </tr>
961
+ <tr>
962
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
963
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
964
+ </tr>
965
+ </tbody>
966
+ </table></div>
967
+ </div>
968
+ <hr>
969
+ <div class="refsect2">
970
+ <a name="cr-input-set-cur-pos"></a><h3>cr_input_set_cur_pos ()</h3>
971
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_set_cur_pos (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
972
+ <em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInputPos" title="struct CRInputPos"><span class="type">CRInputPos</span></a> const *a_pos</code></em>);</pre>
973
+ <p>
974
+ Sets the current position in the input stream.
975
+ </p>
976
+ <div class="variablelist"><table border="0">
977
+ <col align="left" valign="top">
978
+ <tbody>
979
+ <tr>
980
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
981
+ <td>the "this pointer" of the current instance of
982
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
983
+ </tr>
984
+ <tr>
985
+ <td><p><span class="term"><em class="parameter"><code>a_pos</code></em> :</span></p></td>
986
+ <td>the new position.</td>
987
+ </tr>
988
+ <tr>
989
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
990
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
991
+ </tr>
992
+ </tbody>
993
+ </table></div>
994
+ </div>
995
+ <hr>
996
+ <div class="refsect2">
997
+ <a name="cr-input-set-end-of-file"></a><h3>cr_input_set_end_of_file ()</h3>
998
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_set_end_of_file (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
999
+ <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_eof</code></em>);</pre>
1000
+ <p>
1001
+ Sets the end of file flag.
1002
+ </p>
1003
+ <div class="variablelist"><table border="0">
1004
+ <col align="left" valign="top">
1005
+ <tbody>
1006
+ <tr>
1007
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
1008
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
1009
+ </tr>
1010
+ <tr>
1011
+ <td><p><span class="term"><em class="parameter"><code>a_eof</code></em> :</span></p></td>
1012
+ <td>the new end of file flag.</td>
1013
+ </tr>
1014
+ <tr>
1015
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1016
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
1017
+ </tr>
1018
+ </tbody>
1019
+ </table></div>
1020
+ </div>
1021
+ <hr>
1022
+ <div class="refsect2">
1023
+ <a name="cr-input-set-end-of-line"></a><h3>cr_input_set_end_of_line ()</h3>
1024
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_set_end_of_line (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
1025
+ <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_eol</code></em>);</pre>
1026
+ <p>
1027
+ Sets the end of line flag.
1028
+ </p>
1029
+ <div class="variablelist"><table border="0">
1030
+ <col align="left" valign="top">
1031
+ <tbody>
1032
+ <tr>
1033
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
1034
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
1035
+ </tr>
1036
+ <tr>
1037
+ <td><p><span class="term"><em class="parameter"><code>a_eol</code></em> :</span></p></td>
1038
+ <td>the new end of line flag.</td>
1039
+ </tr>
1040
+ <tr>
1041
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1042
+ <td>CR_OK upon successful completion, an error code
1043
+ otherwise.</td>
1044
+ </tr>
1045
+ </tbody>
1046
+ </table></div>
1047
+ </div>
1048
+ <hr>
1049
+ <div class="refsect2">
1050
+ <a name="cr-input-set-line-num"></a><h3>cr_input_set_line_num ()</h3>
1051
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_input_set_line_num (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>,
1052
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_line_num</code></em>);</pre>
1053
+ <p>
1054
+ Setter of the current line number.
1055
+ </p>
1056
+ <p>
1057
+ Return CR_OK upon successful completion, an error code otherwise.
1058
+ </p>
1059
+ <div class="variablelist"><table border="0">
1060
+ <col align="left" valign="top">
1061
+ <tbody>
1062
+ <tr>
1063
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
1064
+ <td>the "this pointer" of the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
1065
+ </tr>
1066
+ <tr>
1067
+ <td><p><span class="term"><em class="parameter"><code>a_line_num</code></em> :</span></p></td>
1068
+ <td>the new line number.</td>
1069
+ </tr>
1070
+ </tbody>
1071
+ </table></div>
1072
+ </div>
1073
+ <hr>
1074
+ <div class="refsect2">
1075
+ <a name="cr-input-unref"></a><h3>cr_input_unref ()</h3>
1076
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cr_input_unref (<em class="parameter"><code><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> *a_this</code></em>);</pre>
1077
+ <p>
1078
+ Decrements the reference count of this instance
1079
+ of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>. If the reference count goes down to
1080
+ zero, this instance is destroyed.
1081
+ </p>
1082
+ <div class="variablelist"><table border="0">
1083
+ <col align="left" valign="top">
1084
+ <tbody>
1085
+ <tr>
1086
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
1087
+ <td>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</td>
1088
+ </tr>
1089
+ <tr>
1090
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1091
+ <td>TRUE if the instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> got destroyed, false otherwise.</td>
1092
+ </tr>
1093
+ </tbody>
1094
+ </table></div>
1095
+ </div>
1096
+ </div>
1097
+ </div>
1098
+ <div class="footer">
1099
+ <hr>
1100
+ Generated by GTK-Doc V1.18</div>
1101
+ </body>
1102
+ </html>