rsvg2 3.0.7-x64-mingw32 → 3.0.8-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/ext/rsvg2/extconf.rb +1 -0
  4. data/lib/2.2/rsvg2.so +0 -0
  5. data/lib/2.3/rsvg2.so +0 -0
  6. data/vendor/local/bin/croco-0.6-config +2 -2
  7. data/vendor/local/bin/csslint-0.6.exe +0 -0
  8. data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
  9. data/vendor/local/bin/librsvg-2-2.dll +0 -0
  10. data/vendor/local/bin/rsvg-convert.exe +0 -0
  11. data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +2 -2
  12. data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +26 -4
  13. data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
  14. data/vendor/local/lib/libcroco-0.6.a +0 -0
  15. data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
  16. data/vendor/local/lib/libcroco-0.6.la +3 -3
  17. data/vendor/local/lib/librsvg-2.a +0 -0
  18. data/vendor/local/lib/librsvg-2.dll.a +0 -0
  19. data/vendor/local/lib/librsvg-2.la +2 -2
  20. data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +1 -1
  21. data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +1 -1
  22. data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +2 -2
  23. data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +13 -14
  24. data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
  25. data/vendor/local/share/gtk-doc/html/libcroco/index.html +5 -6
  26. data/vendor/local/share/gtk-doc/html/libcroco/left-insensitive.png +0 -0
  27. data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
  28. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +360 -221
  29. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +209 -132
  30. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +251 -164
  31. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +693 -449
  32. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +365 -259
  33. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +148 -107
  34. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +805 -463
  35. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1109 -753
  36. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +267 -180
  37. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +351 -255
  38. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -644
  39. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +234 -124
  40. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +437 -271
  41. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +139 -86
  42. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +517 -352
  43. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +326 -252
  44. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +219 -186
  45. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +219 -176
  46. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1231 -1220
  47. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +142 -83
  48. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +351 -256
  49. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +155 -99
  50. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +313 -207
  51. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +321 -210
  52. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +465 -284
  53. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +507 -231
  54. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +54 -40
  55. data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +465 -426
  56. data/vendor/local/share/gtk-doc/html/libcroco/right-insensitive.png +0 -0
  57. data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
  58. data/vendor/local/share/gtk-doc/html/libcroco/style.css +317 -104
  59. data/vendor/local/share/gtk-doc/html/libcroco/up-insensitive.png +0 -0
  60. data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
  61. data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1039 -724
  62. data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +29 -32
  63. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +16 -19
  64. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +13 -16
  65. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +14 -17
  66. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +15 -20
  67. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +12 -15
  68. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +17 -22
  69. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +18 -23
  70. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +31 -36
  71. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +79 -84
  72. data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
  73. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +4 -4
  74. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +31 -28
  75. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
  76. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
  77. data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +9 -9
  78. data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +15 -15
  79. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
  80. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
  81. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +55 -59
  82. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +247 -190
  83. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +336 -239
  84. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +95 -70
  85. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +77 -37
  86. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +9 -9
  87. data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +314 -104
  88. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
  89. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
  90. metadata +14 -10
  91. data/lib/2.0/rsvg2.so +0 -0
  92. data/lib/2.1/rsvg2.so +0 -0
  93. data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +0 -582
@@ -2,30 +2,26 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>cr-input</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>cr-input: Libcroco Reference Manual</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Libcroco Reference Manual">
8
8
  <link rel="up" href="ch01.html" title="Extensive APIs description">
9
9
  <link rel="prev" href="libcroco-cr-fonts.html" title="cr-fonts">
10
10
  <link rel="next" href="libcroco-cr-num.html" title="cr-num">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.24.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="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>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#libcroco-cr-input.description" class="shortcut">Description</a></span>
19
+ </td>
20
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21
+ <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22
+ <td><a accesskey="p" href="libcroco-cr-fonts.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="libcroco-cr-num.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24
+ </tr></table>
29
25
  <div class="refentry">
30
26
  <a name="libcroco-cr-input"></a><div class="titlepage"></div>
31
27
  <div class="refnamediv"><table width="100%"><tr>
@@ -33,1070 +29,1430 @@
33
29
  <h2><span class="refentrytitle"><a name="libcroco-cr-input.top_of_page"></a>cr-input</span></h2>
34
30
  <p>cr-input</p>
35
31
  </td>
36
- <td valign="top" align="right"></td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
37
33
  </tr></table></div>
38
- <div class="refsynopsisdiv">
39
- <a name="libcroco-cr-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
34
  <div class="refsect1">
115
- <a name="libcroco-cr-input.description"></a><h2>Description</h2>
116
- <p>
117
- </p>
35
+ <a name="libcroco-cr-input.functions"></a><h2>Functions</h2>
36
+ <div class="informaltable"><table width="100%" border="0">
37
+ <colgroup>
38
+ <col width="150px" class="functions_return">
39
+ <col class="functions_name">
40
+ </colgroup>
41
+ <tbody>
42
+ <tr>
43
+ <td class="function_type">
44
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> *
45
+ </td>
46
+ <td class="function_name">
47
+ <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> <span class="c_punctuation">()</span>
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td class="function_type">
52
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> *
53
+ </td>
54
+ <td class="function_name">
55
+ <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> <span class="c_punctuation">()</span>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td class="function_type">
60
+ <span class="returnvalue">void</span>
61
+ </td>
62
+ <td class="function_name">
63
+ <a class="link" href="libcroco-cr-input.html#cr-input-destroy" title="cr_input_destroy ()">cr_input_destroy</a> <span class="c_punctuation">()</span>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <td class="function_type">
68
+ <span class="returnvalue">void</span>
69
+ </td>
70
+ <td class="function_name">
71
+ <a class="link" href="libcroco-cr-input.html#cr-input-ref" title="cr_input_ref ()">cr_input_ref</a> <span class="c_punctuation">()</span>
72
+ </td>
73
+ </tr>
74
+ <tr>
75
+ <td class="function_type">
76
+ <span class="returnvalue">gboolean</span>
77
+ </td>
78
+ <td class="function_name">
79
+ <a class="link" href="libcroco-cr-input.html#cr-input-unref" title="cr_input_unref ()">cr_input_unref</a> <span class="c_punctuation">()</span>
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
84
+ </td>
85
+ <td class="function_name">
86
+ <a class="link" href="libcroco-cr-input.html#cr-input-read-byte" title="cr_input_read_byte ()">cr_input_read_byte</a> <span class="c_punctuation">()</span>
87
+ </td>
88
+ </tr>
89
+ <tr>
90
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
91
+ </td>
92
+ <td class="function_name">
93
+ <a class="link" href="libcroco-cr-input.html#cr-input-read-char" title="cr_input_read_char ()">cr_input_read_char</a> <span class="c_punctuation">()</span>
94
+ </td>
95
+ </tr>
96
+ <tr>
97
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
98
+ </td>
99
+ <td class="function_name">
100
+ <a class="link" href="libcroco-cr-input.html#cr-input-consume-chars" title="cr_input_consume_chars ()">cr_input_consume_chars</a> <span class="c_punctuation">()</span>
101
+ </td>
102
+ </tr>
103
+ <tr>
104
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
105
+ </td>
106
+ <td class="function_name">
107
+ <a class="link" href="libcroco-cr-input.html#cr-input-consume-char" title="cr_input_consume_char ()">cr_input_consume_char</a> <span class="c_punctuation">()</span>
108
+ </td>
109
+ </tr>
110
+ <tr>
111
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
112
+ </td>
113
+ <td class="function_name">
114
+ <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> <span class="c_punctuation">()</span>
115
+ </td>
116
+ </tr>
117
+ <tr>
118
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
119
+ </td>
120
+ <td class="function_name">
121
+ <a class="link" href="libcroco-cr-input.html#cr-input-peek-byte" title="cr_input_peek_byte ()">cr_input_peek_byte</a> <span class="c_punctuation">()</span>
122
+ </td>
123
+ </tr>
124
+ <tr>
125
+ <td class="function_type">
126
+ <span class="returnvalue">guchar</span>
127
+ </td>
128
+ <td class="function_name">
129
+ <a class="link" href="libcroco-cr-input.html#cr-input-peek-byte2" title="cr_input_peek_byte2 ()">cr_input_peek_byte2</a> <span class="c_punctuation">()</span>
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
134
+ </td>
135
+ <td class="function_name">
136
+ <a class="link" href="libcroco-cr-input.html#cr-input-peek-char" title="cr_input_peek_char ()">cr_input_peek_char</a> <span class="c_punctuation">()</span>
137
+ </td>
138
+ </tr>
139
+ <tr>
140
+ <td class="function_type">
141
+ <span class="returnvalue">guchar</span> *
142
+ </td>
143
+ <td class="function_name">
144
+ <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> <span class="c_punctuation">()</span>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
149
+ </td>
150
+ <td class="function_name">
151
+ <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> <span class="c_punctuation">()</span>
152
+ </td>
153
+ </tr>
154
+ <tr>
155
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
156
+ </td>
157
+ <td class="function_name">
158
+ <a class="link" href="libcroco-cr-input.html#cr-input-seek-index" title="cr_input_seek_index ()">cr_input_seek_index</a> <span class="c_punctuation">()</span>
159
+ </td>
160
+ </tr>
161
+ <tr>
162
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
163
+ </td>
164
+ <td class="function_name">
165
+ <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> <span class="c_punctuation">()</span>
166
+ </td>
167
+ </tr>
168
+ <tr>
169
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
170
+ </td>
171
+ <td class="function_name">
172
+ <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> <span class="c_punctuation">()</span>
173
+ </td>
174
+ </tr>
175
+ <tr>
176
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
177
+ </td>
178
+ <td class="function_name">
179
+ <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> <span class="c_punctuation">()</span>
180
+ </td>
181
+ </tr>
182
+ <tr>
183
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
184
+ </td>
185
+ <td class="function_name">
186
+ <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> <span class="c_punctuation">()</span>
187
+ </td>
188
+ </tr>
189
+ <tr>
190
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
191
+ </td>
192
+ <td class="function_name">
193
+ <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> <span class="c_punctuation">()</span>
194
+ </td>
195
+ </tr>
196
+ <tr>
197
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
198
+ </td>
199
+ <td class="function_name">
200
+ <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> <span class="c_punctuation">()</span>
201
+ </td>
202
+ </tr>
203
+ <tr>
204
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
205
+ </td>
206
+ <td class="function_name">
207
+ <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> <span class="c_punctuation">()</span>
208
+ </td>
209
+ </tr>
210
+ <tr>
211
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
212
+ </td>
213
+ <td class="function_name">
214
+ <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> <span class="c_punctuation">()</span>
215
+ </td>
216
+ </tr>
217
+ <tr>
218
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
219
+ </td>
220
+ <td class="function_name">
221
+ <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> <span class="c_punctuation">()</span>
222
+ </td>
223
+ </tr>
224
+ <tr>
225
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
226
+ </td>
227
+ <td class="function_name">
228
+ <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> <span class="c_punctuation">()</span>
229
+ </td>
230
+ </tr>
231
+ <tr>
232
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
233
+ </td>
234
+ <td class="function_name">
235
+ <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> <span class="c_punctuation">()</span>
236
+ </td>
237
+ </tr>
238
+ <tr>
239
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
240
+ </td>
241
+ <td class="function_name">
242
+ <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> <span class="c_punctuation">()</span>
243
+ </td>
244
+ </tr>
245
+ <tr>
246
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
247
+ </td>
248
+ <td class="function_name">
249
+ <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> <span class="c_punctuation">()</span>
250
+ </td>
251
+ </tr>
252
+ <tr>
253
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
254
+ </td>
255
+ <td class="function_name">
256
+ <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> <span class="c_punctuation">()</span>
257
+ </td>
258
+ </tr>
259
+ <tr>
260
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
261
+ </td>
262
+ <td class="function_name">
263
+ <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> <span class="c_punctuation">()</span>
264
+ </td>
265
+ </tr>
266
+ <tr>
267
+ <td class="function_type">
268
+ <span class="returnvalue">glong</span>
269
+ </td>
270
+ <td class="function_name">
271
+ <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> <span class="c_punctuation">()</span>
272
+ </td>
273
+ </tr>
274
+ <tr>
275
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
276
+ </td>
277
+ <td class="function_name">
278
+ <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> <span class="c_punctuation">()</span>
279
+ </td>
280
+ </tr>
281
+ </tbody>
282
+ </table></div>
118
283
  </div>
119
284
  <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">
285
+ <a name="libcroco-cr-input.other"></a><h2>Types and Values</h2>
286
+ <div class="informaltable"><table width="100%" border="0">
287
+ <colgroup>
288
+ <col width="150px" class="name">
289
+ <col class="description">
290
+ </colgroup>
162
291
  <tbody>
163
292
  <tr>
164
- <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
165
- <td>the this pointer.</td>
293
+ <td class="datatype_keyword">struct</td>
294
+ <td class="function_name"><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput">CRInput</a></td>
166
295
  </tr>
167
296
  <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>
297
+ <td class="datatype_keyword">struct</td>
298
+ <td class="function_name"><a class="link" href="libcroco-cr-input.html#CRInputPos" title="struct CRInputPos">CRInputPos</a></td>
171
299
  </tr>
172
300
  <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>
301
+ <td class="datatype_keyword"> </td>
302
+ <td class="function_name"><a class="link" href="libcroco-cr-input.html#CRInputPriv" title="CRInputPriv">CRInputPriv</a></td>
176
303
  </tr>
177
304
  </tbody>
178
305
  </table></div>
179
306
  </div>
180
- <hr>
307
+ <div class="refsect1">
308
+ <a name="libcroco-cr-input.description"></a><h2>Description</h2>
309
+ </div>
310
+ <div class="refsect1">
311
+ <a name="libcroco-cr-input.functions_details"></a><h2>Functions</h2>
181
312
  <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">
313
+ <a name="cr-input-new-from-buf"></a><h3>cr_input_new_from_buf ()</h3>
314
+ <pre class="programlisting"><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> *
315
+ cr_input_new_from_buf (<em class="parameter"><code><span class="type">guchar</span> *a_buf</code></em>,
316
+ <em class="parameter"><code><span class="type">gulong</span> a_len</code></em>,
317
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>,
318
+ <em class="parameter"><code><span class="type">gboolean</span> a_free_buf</code></em>);</pre>
319
+ <p>Creates a new input stream from a memory buffer.
320
+ Returns the newly built instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p>
321
+ <div class="refsect3">
322
+ <a name="id-1.2.9.6.2.5"></a><h4>Parameters</h4>
323
+ <div class="informaltable"><table width="100%" border="0">
324
+ <colgroup>
325
+ <col width="150px" class="parameters_name">
326
+ <col class="parameters_description">
327
+ <col width="200px" class="parameters_annotations">
328
+ </colgroup>
196
329
  <tbody>
197
330
  <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>
331
+ <td class="parameter_name"><p>a_buf</p></td>
332
+ <td class="parameter_description"><p>the memory buffer to create the input stream from.
333
+ 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 !.</p></td>
334
+ <td class="parameter_annotations"> </td>
200
335
  </tr>
201
336
  <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>
337
+ <td class="parameter_name"><p>a_len</p></td>
338
+ <td class="parameter_description"><p>the size of the input buffer.</p></td>
339
+ <td class="parameter_annotations"> </td>
204
340
  </tr>
205
341
  <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>
342
+ <td class="parameter_name"><p>a_enc</p></td>
343
+ <td class="parameter_description"><p>the buffer's encoding.</p></td>
344
+ <td class="parameter_annotations"> </td>
212
345
  </tr>
213
346
  <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>
347
+ <td class="parameter_name"><p>a_free_buf</p></td>
348
+ <td class="parameter_description"><p>if set to TRUE, this a_buf will be freed
349
+ at the destruction of this instance. If set to false, it is up
350
+ to the caller to free it.</p></td>
351
+ <td class="parameter_annotations"> </td>
217
352
  </tr>
218
353
  </tbody>
219
354
  </table></div>
220
355
  </div>
356
+ </div>
221
357
  <hr>
222
358
  <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">
359
+ <a name="cr-input-new-from-uri"></a><h3>cr_input_new_from_uri ()</h3>
360
+ <pre class="programlisting"><a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="returnvalue">CRInput</span></a> *
361
+ cr_input_new_from_uri (<em class="parameter"><code>const <span class="type">gchar</span> *a_file_uri</code></em>,
362
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
363
+ <p>Creates a new input stream from
364
+ a file.</p>
365
+ <p>Returns the newly created input stream if
366
+ this method could read the file and create it,
367
+ NULL otherwise.</p>
368
+ <div class="refsect3">
369
+ <a name="id-1.2.9.6.3.6"></a><h4>Parameters</h4>
370
+ <div class="informaltable"><table width="100%" border="0">
371
+ <colgroup>
372
+ <col width="150px" class="parameters_name">
373
+ <col class="parameters_description">
374
+ <col width="200px" class="parameters_annotations">
375
+ </colgroup>
232
376
  <tbody>
233
377
  <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>
378
+ <td class="parameter_name"><p>a_file_uri</p></td>
379
+ <td class="parameter_description"><p>the file to create *the input stream from.</p></td>
380
+ <td class="parameter_annotations"> </td>
236
381
  </tr>
237
382
  <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>
383
+ <td class="parameter_name"><p>a_enc</p></td>
384
+ <td class="parameter_description"><p>the encoding of the file *to create the input from.</p></td>
385
+ <td class="parameter_annotations"> </td>
245
386
  </tr>
246
387
  </tbody>
247
388
  </table></div>
248
389
  </div>
390
+ </div>
249
391
  <hr>
250
392
  <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">
393
+ <a name="cr-input-destroy"></a><h3>cr_input_destroy ()</h3>
394
+ <pre class="programlisting"><span class="returnvalue">void</span>
395
+ 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>
396
+ <p>The destructor of the <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> class.</p>
397
+ <div class="refsect3">
398
+ <a name="id-1.2.9.6.4.5"></a><h4>Parameters</h4>
399
+ <div class="informaltable"><table width="100%" border="0">
400
+ <colgroup>
401
+ <col width="150px" class="parameters_name">
402
+ <col class="parameters_description">
403
+ <col width="200px" class="parameters_annotations">
404
+ </colgroup>
258
405
  <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>
406
+ <td class="parameter_name"><p>a_this</p></td>
407
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
408
+ <td class="parameter_annotations"> </td>
261
409
  </tr></tbody>
262
410
  </table></div>
263
411
  </div>
412
+ </div>
264
413
  <hr>
265
414
  <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>
415
+ <a name="cr-input-ref"></a><h3>cr_input_ref ()</h3>
416
+ <pre class="programlisting"><span class="returnvalue">void</span>
417
+ 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>
418
+ <p>Increments the reference count of the current
419
+ instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p>
420
+ <div class="refsect3">
421
+ <a name="id-1.2.9.6.5.5"></a><h4>Parameters</h4>
422
+ <div class="informaltable"><table width="100%" border="0">
423
+ <colgroup>
424
+ <col width="150px" class="parameters_name">
425
+ <col class="parameters_description">
426
+ <col width="200px" class="parameters_annotations">
427
+ </colgroup>
428
+ <tbody><tr>
429
+ <td class="parameter_name"><p>a_this</p></td>
430
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
431
+ <td class="parameter_annotations"> </td>
432
+ </tr></tbody>
433
+ </table></div>
434
+ </div>
435
+ </div>
436
+ <hr>
437
+ <div class="refsect2">
438
+ <a name="cr-input-unref"></a><h3>cr_input_unref ()</h3>
439
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
440
+ 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>
441
+ <p>Decrements the reference count of this instance
442
+ 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
443
+ zero, this instance is destroyed.</p>
444
+ <p>Returns 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.</p>
445
+ <div class="refsect3">
446
+ <a name="id-1.2.9.6.6.6"></a><h4>Parameters</h4>
447
+ <div class="informaltable"><table width="100%" border="0">
448
+ <colgroup>
449
+ <col width="150px" class="parameters_name">
450
+ <col class="parameters_description">
451
+ <col width="200px" class="parameters_annotations">
452
+ </colgroup>
453
+ <tbody><tr>
454
+ <td class="parameter_name"><p>a_this</p></td>
455
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
456
+ <td class="parameter_annotations"> </td>
457
+ </tr></tbody>
293
458
  </table></div>
294
459
  </div>
460
+ </div>
295
461
  <hr>
296
462
  <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">
463
+ <a name="cr-input-read-byte"></a><h3>cr_input_read_byte ()</h3>
464
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
465
+ 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>,
466
+ <em class="parameter"><code><span class="type">guchar</span> *a_byte</code></em>);</pre>
467
+ <p>Gets the next byte of the input.
468
+ Updates the state of the input so that
469
+ the next invocation of this method returns
470
+ the next coming byte.</p>
471
+ <p>Returns CR_OK upon successful completion, an error code
472
+ otherwise. All the out parameters of this method are valid if
473
+ and only if this method returns CR_OK.</p>
474
+ <div class="refsect3">
475
+ <a name="id-1.2.9.6.7.6"></a><h4>Parameters</h4>
476
+ <div class="informaltable"><table width="100%" border="0">
477
+ <colgroup>
478
+ <col width="150px" class="parameters_name">
479
+ <col class="parameters_description">
480
+ <col width="200px" class="parameters_annotations">
481
+ </colgroup>
306
482
  <tbody>
307
483
  <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>
484
+ <td class="parameter_name"><p>a_this</p></td>
485
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
486
+ <td class="parameter_annotations"> </td>
315
487
  </tr>
316
488
  <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>
489
+ <td class="parameter_name"><p>a_byte</p></td>
490
+ <td class="parameter_description"><p>out parameter the returned byte.</p></td>
491
+ <td class="parameter_annotations"> </td>
319
492
  </tr>
320
493
  </tbody>
321
494
  </table></div>
322
495
  </div>
496
+ </div>
323
497
  <hr>
324
498
  <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">
499
+ <a name="cr-input-read-char"></a><h3>cr_input_read_char ()</h3>
500
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
501
+ 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>,
502
+ <em class="parameter"><code><span class="type">guint32</span> *a_char</code></em>);</pre>
503
+ <p>Reads an unicode character from the current instance of
504
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p>
505
+ <p>Returns CR_OK upon successful completion, an error code
506
+ otherwise.</p>
507
+ <div class="refsect3">
508
+ <a name="id-1.2.9.6.8.6"></a><h4>Parameters</h4>
509
+ <div class="informaltable"><table width="100%" border="0">
510
+ <colgroup>
511
+ <col width="150px" class="parameters_name">
512
+ <col class="parameters_description">
513
+ <col width="200px" class="parameters_annotations">
514
+ </colgroup>
333
515
  <tbody>
334
516
  <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>
517
+ <td class="parameter_name"><p>a_this</p></td>
518
+ <td class="parameter_description"><p>the current instance of CRInput.</p></td>
519
+ <td class="parameter_annotations"> </td>
337
520
  </tr>
338
521
  <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>
522
+ <td class="parameter_name"><p>a_char</p></td>
523
+ <td class="parameter_description"><p>out parameter. The read character.</p></td>
524
+ <td class="parameter_annotations"> </td>
345
525
  </tr>
346
526
  </tbody>
347
527
  </table></div>
348
528
  </div>
529
+ </div>
349
530
  <hr>
350
531
  <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">
532
+ <a name="cr-input-consume-chars"></a><h3>cr_input_consume_chars ()</h3>
533
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
534
+ 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>,
535
+ <em class="parameter"><code><span class="type">guint32</span> a_char</code></em>,
536
+ <em class="parameter"><code><span class="type">gulong</span> *a_nb_char</code></em>);</pre>
537
+ <p>Consumes up to a_nb_char occurences of the next contiguous characters
538
+ which equal a_char. Note that the next character of the input stream
539
+ *MUST* equal a_char to trigger the consumption, or else, the error
540
+ code CR_PARSING_ERROR is returned.
541
+ If the number of contiguous characters that equals a_char is less than
542
+ a_nb_char, then this function consumes all the characters it can consume.</p>
543
+ <p>Returns CR_OK if at least one character has been consumed, an error code
544
+ otherwise.</p>
545
+ <div class="refsect3">
546
+ <a name="id-1.2.9.6.9.6"></a><h4>Parameters</h4>
547
+ <div class="informaltable"><table width="100%" border="0">
548
+ <colgroup>
549
+ <col width="150px" class="parameters_name">
550
+ <col class="parameters_description">
551
+ <col width="200px" class="parameters_annotations">
552
+ </colgroup>
359
553
  <tbody>
360
554
  <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>
555
+ <td class="parameter_name"><p>a_this</p></td>
556
+ <td class="parameter_description"><p>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>.</p></td>
557
+ <td class="parameter_annotations"> </td>
363
558
  </tr>
364
559
  <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>
560
+ <td class="parameter_name"><p>a_char</p></td>
561
+ <td class="parameter_description"><p>the character to consume.</p></td>
562
+ <td class="parameter_annotations"> </td>
367
563
  </tr>
368
564
  <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>
565
+ <td class="parameter_name"><p>a_nb_char</p></td>
566
+ <td class="parameter_description"><p>in/out parameter. The number of characters to consume.
567
+ If set to a negative value, the function will consume all the occurences
568
+ of a_char found.
569
+ After return, if the return value equals CR_OK, this variable contains
570
+ the number of characters actually consumed.</p></td>
571
+ <td class="parameter_annotations"> </td>
371
572
  </tr>
372
573
  </tbody>
373
574
  </table></div>
374
575
  </div>
576
+ </div>
375
577
  <hr>
376
578
  <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">
579
+ <a name="cr-input-consume-char"></a><h3>cr_input_consume_char ()</h3>
580
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
581
+ 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>,
582
+ <em class="parameter"><code><span class="type">guint32</span> a_char</code></em>);</pre>
583
+ <p>Consumes the next character of the input stream if
584
+ and only if that character equals a_char.</p>
585
+ <p>Returns CR_OK upon successful completion, CR_PARSING_ERROR if
586
+ next char is different from a_char, an other error code otherwise</p>
587
+ <div class="refsect3">
588
+ <a name="id-1.2.9.6.10.6"></a><h4>Parameters</h4>
589
+ <div class="informaltable"><table width="100%" border="0">
590
+ <colgroup>
591
+ <col width="150px" class="parameters_name">
592
+ <col class="parameters_description">
593
+ <col width="200px" class="parameters_annotations">
594
+ </colgroup>
387
595
  <tbody>
388
596
  <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>
597
+ <td class="parameter_name"><p>a_this</p></td>
598
+ <td class="parameter_description"><p>the this pointer.</p></td>
599
+ <td class="parameter_annotations"> </td>
393
600
  </tr>
394
601
  <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>
602
+ <td class="parameter_name"><p>a_char</p></td>
603
+ <td class="parameter_description"><p>the character to consume. If set to zero,
604
+ consumes any character.</p></td>
605
+ <td class="parameter_annotations"> </td>
402
606
  </tr>
403
607
  </tbody>
404
608
  </table></div>
405
609
  </div>
610
+ </div>
406
611
  <hr>
407
612
  <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">
613
+ <a name="cr-input-consume-white-spaces"></a><h3>cr_input_consume_white_spaces ()</h3>
614
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
615
+ 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>,
616
+ <em class="parameter"><code><span class="type">gulong</span> *a_nb_chars</code></em>);</pre>
617
+ <p>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
618
+ spaces.</p>
619
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
620
+ <div class="refsect3">
621
+ <a name="id-1.2.9.6.11.6"></a><h4>Parameters</h4>
622
+ <div class="informaltable"><table width="100%" border="0">
623
+ <colgroup>
624
+ <col width="150px" class="parameters_name">
625
+ <col class="parameters_description">
626
+ <col width="200px" class="parameters_annotations">
627
+ </colgroup>
418
628
  <tbody>
419
629
  <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>
630
+ <td class="parameter_name"><p>a_this</p></td>
631
+ <td class="parameter_description"><p>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>.</p></td>
632
+ <td class="parameter_annotations"> </td>
422
633
  </tr>
423
634
  <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>
635
+ <td class="parameter_name"><p>a_nb_chars</p></td>
636
+ <td class="parameter_description"><p>in/out parameter. The number of white spaces to
637
+ consume. After return, holds the number of white spaces actually consumed.</p></td>
638
+ <td class="parameter_annotations"> </td>
436
639
  </tr>
437
640
  </tbody>
438
641
  </table></div>
439
642
  </div>
643
+ </div>
440
644
  <hr>
441
645
  <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">
646
+ <a name="cr-input-peek-byte"></a><h3>cr_input_peek_byte ()</h3>
647
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
648
+ 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>,
649
+ <em class="parameter"><code><span class="type">enum CRSeekPos</span> a_origin</code></em>,
650
+ <em class="parameter"><code><span class="type">gulong</span> a_offset</code></em>,
651
+ <em class="parameter"><code><span class="type">guchar</span> *a_byte</code></em>);</pre>
652
+ <p>Gets a byte from the input stream,
653
+ starting from the current position in the input stream.
654
+ Unlike <code class="function">cr_input_peek_next_byte()</code> this method
655
+ does not update the state of the current input stream.
656
+ Subsequent calls to cr_input_peek_byte with the same arguments
657
+ will return the same byte.</p>
658
+ <p>Returns CR_OK upon successful completion or,
659
+ CR_BAD_PARAM_ERROR if at least one of the parameters is invalid;
660
+ CR_OUT_OF_BOUNDS_ERROR if the indexed byte is out of bounds.</p>
661
+ <div class="refsect3">
662
+ <a name="id-1.2.9.6.12.6"></a><h4>Parameters</h4>
663
+ <div class="informaltable"><table width="100%" border="0">
664
+ <colgroup>
665
+ <col width="150px" class="parameters_name">
666
+ <col class="parameters_description">
667
+ <col width="200px" class="parameters_annotations">
668
+ </colgroup>
450
669
  <tbody>
451
670
  <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>
671
+ <td class="parameter_name"><p>a_this</p></td>
672
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
673
+ <td class="parameter_annotations"> </td>
454
674
  </tr>
455
675
  <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>
676
+ <td class="parameter_name"><p>a_origin</p></td>
677
+ <td class="parameter_description"><p>the origin to consider in the calculation
678
+ of the position of the byte to peek.</p></td>
679
+ <td class="parameter_annotations"> </td>
459
680
  </tr>
460
681
  <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>
682
+ <td class="parameter_name"><p>a_offset</p></td>
683
+ <td class="parameter_description"><p>the offset of the byte to peek, starting from
684
+ the origin specified by a_origin.</p></td>
685
+ <td class="parameter_annotations"> </td>
686
+ </tr>
687
+ <tr>
688
+ <td class="parameter_name"><p>a_byte</p></td>
689
+ <td class="parameter_description"><p>out parameter the peeked byte.</p></td>
690
+ <td class="parameter_annotations"> </td>
463
691
  </tr>
464
692
  </tbody>
465
693
  </table></div>
466
694
  </div>
695
+ </div>
467
696
  <hr>
468
697
  <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">
698
+ <a name="cr-input-peek-byte2"></a><h3>cr_input_peek_byte2 ()</h3>
699
+ <pre class="programlisting"><span class="returnvalue">guchar</span>
700
+ 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>,
701
+ <em class="parameter"><code><span class="type">gulong</span> a_offset</code></em>,
702
+ <em class="parameter"><code><span class="type">gboolean</span> *a_eof</code></em>);</pre>
703
+ <p>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
704
+ interface.</p>
705
+ <p>Returns the read byte or 0 if something bad happened.</p>
706
+ <div class="refsect3">
707
+ <a name="id-1.2.9.6.13.6"></a><h4>Parameters</h4>
708
+ <div class="informaltable"><table width="100%" border="0">
709
+ <colgroup>
710
+ <col width="150px" class="parameters_name">
711
+ <col class="parameters_description">
712
+ <col width="200px" class="parameters_annotations">
713
+ </colgroup>
477
714
  <tbody>
478
715
  <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>
716
+ <td class="parameter_name"><p>a_this</p></td>
717
+ <td class="parameter_description"><p>the current byte input stream.</p></td>
718
+ <td class="parameter_annotations"> </td>
482
719
  </tr>
483
720
  <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>
721
+ <td class="parameter_name"><p>a_offset</p></td>
722
+ <td class="parameter_description"><p>the offset of the byte to peek, starting
723
+ from the current input position pointer.</p></td>
724
+ <td class="parameter_annotations"> </td>
487
725
  </tr>
488
726
  <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>
727
+ <td class="parameter_name"><p>a_eof</p></td>
728
+ <td class="parameter_description"><p>out parameter. Is set to true is we reach end of
729
+ stream. If set to NULL by the caller, this parameter is not taken
730
+ in account.</p></td>
731
+ <td class="parameter_annotations"> </td>
492
732
  </tr>
493
733
  </tbody>
494
734
  </table></div>
495
735
  </div>
736
+ </div>
496
737
  <hr>
497
738
  <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">
739
+ <a name="cr-input-peek-char"></a><h3>cr_input_peek_char ()</h3>
740
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
741
+ 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>,
742
+ <em class="parameter"><code><span class="type">guint32</span> *a_char</code></em>);</pre>
743
+ <p>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
744
+ internal state of the input stream. The next call
745
+ 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
746
+ return the same character as the current one.</p>
747
+ <p>Returns CR_OK upon successful completion, an error code
748
+ otherwise.</p>
749
+ <div class="refsect3">
750
+ <a name="id-1.2.9.6.14.6"></a><h4>Parameters</h4>
751
+ <div class="informaltable"><table width="100%" border="0">
752
+ <colgroup>
753
+ <col width="150px" class="parameters_name">
754
+ <col class="parameters_description">
755
+ <col width="200px" class="parameters_annotations">
756
+ </colgroup>
506
757
  <tbody>
507
758
  <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>
759
+ <td class="parameter_name"><p>a_this</p></td>
760
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
761
+ <td class="parameter_annotations"> </td>
514
762
  </tr>
515
763
  <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>
764
+ <td class="parameter_name"><p>a_char</p></td>
765
+ <td class="parameter_description"><p>out parameter. The returned character.</p></td>
766
+ <td class="parameter_annotations"> </td>
518
767
  </tr>
519
768
  </tbody>
520
769
  </table></div>
521
770
  </div>
771
+ </div>
522
772
  <hr>
523
773
  <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">
774
+ <a name="cr-input-get-byte-addr"></a><h3>cr_input_get_byte_addr ()</h3>
775
+ <pre class="programlisting"><span class="returnvalue">guchar</span> *
776
+ 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>,
777
+ <em class="parameter"><code><span class="type">gulong</span> a_offset</code></em>);</pre>
778
+ <p>Gets the memory address of the byte located at a given offset
779
+ in the input stream.</p>
780
+ <p>Returns the address, otherwise NULL if an error occured.</p>
781
+ <div class="refsect3">
782
+ <a name="id-1.2.9.6.15.6"></a><h4>Parameters</h4>
783
+ <div class="informaltable"><table width="100%" border="0">
784
+ <colgroup>
785
+ <col width="150px" class="parameters_name">
786
+ <col class="parameters_description">
787
+ <col width="200px" class="parameters_annotations">
788
+ </colgroup>
528
789
  <tbody>
529
790
  <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>
791
+ <td class="parameter_name"><p>a_this</p></td>
792
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
793
+ <td class="parameter_annotations"> </td>
532
794
  </tr>
533
795
  <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>
796
+ <td class="parameter_name"><p>a_offset</p></td>
797
+ <td class="parameter_description"><p>the offset of the byte in the input stream starting
798
+ from the beginning of the stream.</p></td>
799
+ <td class="parameter_annotations"> </td>
537
800
  </tr>
538
801
  </tbody>
539
802
  </table></div>
540
803
  </div>
804
+ </div>
541
805
  <hr>
542
806
  <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">
807
+ <a name="cr-input-get-cur-byte-addr"></a><h3>cr_input_get_cur_byte_addr ()</h3>
808
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
809
+ 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>,
810
+ <em class="parameter"><code><span class="type">guchar</span> **a_offset</code></em>);</pre>
811
+ <p>Gets the address of the current character pointer.</p>
812
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
813
+ <div class="refsect3">
814
+ <a name="id-1.2.9.6.16.6"></a><h4>Parameters</h4>
815
+ <div class="informaltable"><table width="100%" border="0">
816
+ <colgroup>
817
+ <col width="150px" class="parameters_name">
818
+ <col class="parameters_description">
819
+ <col width="200px" class="parameters_annotations">
820
+ </colgroup>
554
821
  <tbody>
555
822
  <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>
823
+ <td class="parameter_name"><p>a_this</p></td>
824
+ <td class="parameter_description"><p>the current input stream</p></td>
825
+ <td class="parameter_annotations"> </td>
563
826
  </tr>
564
827
  <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>
828
+ <td class="parameter_name"><p>a_offset</p></td>
829
+ <td class="parameter_description"><p>out parameter. The returned address.</p></td>
830
+ <td class="parameter_annotations"> </td>
568
831
  </tr>
569
832
  </tbody>
570
833
  </table></div>
571
834
  </div>
835
+ </div>
572
836
  <hr>
573
837
  <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">
838
+ <a name="cr-input-seek-index"></a><h3>cr_input_seek_index ()</h3>
839
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
840
+ 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>,
841
+ <em class="parameter"><code><span class="type">enum CRSeekPos</span> a_origin</code></em>,
842
+ <em class="parameter"><code><span class="type">gint</span> a_pos</code></em>);</pre>
843
+ <p>Sets the "current byte index" of the current instance
844
+ 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
845
+ the byte next after the new "current byte index".</p>
846
+ <p>Returns CR_OK upon successful completion otherwise returns
847
+ CR_BAD_PARAM_ERROR if at least one of the parameters is not valid
848
+ or CR_OUT_BOUNDS_ERROR in case of error.</p>
849
+ <div class="refsect3">
850
+ <a name="id-1.2.9.6.17.6"></a><h4>Parameters</h4>
851
+ <div class="informaltable"><table width="100%" border="0">
852
+ <colgroup>
853
+ <col width="150px" class="parameters_name">
854
+ <col class="parameters_description">
855
+ <col width="200px" class="parameters_annotations">
856
+ </colgroup>
582
857
  <tbody>
583
858
  <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>
859
+ <td class="parameter_name"><p>a_this</p></td>
860
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
861
+ <td class="parameter_annotations"> </td>
586
862
  </tr>
587
863
  <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>
864
+ <td class="parameter_name"><p>a_origin</p></td>
865
+ <td class="parameter_description"><p>the origin to consider during the calculation
866
+ of the absolute position of the new "current byte index".</p></td>
867
+ <td class="parameter_annotations"> </td>
590
868
  </tr>
591
869
  <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>
870
+ <td class="parameter_name"><p>a_pos</p></td>
871
+ <td class="parameter_description"><p>the relative offset of the new "current byte index."
872
+ This offset is relative to the origin a_origin.</p></td>
873
+ <td class="parameter_annotations"> </td>
594
874
  </tr>
595
875
  </tbody>
596
876
  </table></div>
597
877
  </div>
878
+ </div>
598
879
  <hr>
599
880
  <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">
881
+ <a name="cr-input-get-cur-index"></a><h3>cr_input_get_cur_index ()</h3>
882
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
883
+ 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>,
884
+ <em class="parameter"><code><span class="type">glong</span> *a_index</code></em>);</pre>
885
+ <p>Getter of the next byte index.
886
+ It actually returns the index of the
887
+ next byte to be read.</p>
888
+ <p>Returns CR_OK upon successful completion, an error code
889
+ otherwise.</p>
890
+ <div class="refsect3">
891
+ <a name="id-1.2.9.6.18.6"></a><h4>Parameters</h4>
892
+ <div class="informaltable"><table width="100%" border="0">
893
+ <colgroup>
894
+ <col width="150px" class="parameters_name">
895
+ <col class="parameters_description">
896
+ <col width="200px" class="parameters_annotations">
897
+ </colgroup>
608
898
  <tbody>
609
899
  <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>
900
+ <td class="parameter_name"><p>a_this</p></td>
901
+ <td class="parameter_description"><p>the "this pointer" of the current instance of
902
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a></p></td>
903
+ <td class="parameter_annotations"> </td>
612
904
  </tr>
613
905
  <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>
906
+ <td class="parameter_name"><p>a_index</p></td>
907
+ <td class="parameter_description"><p>out parameter. The returned index.</p></td>
908
+ <td class="parameter_annotations"> </td>
620
909
  </tr>
621
910
  </tbody>
622
911
  </table></div>
623
912
  </div>
913
+ </div>
624
914
  <hr>
625
915
  <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">
916
+ <a name="cr-input-set-cur-index"></a><h3>cr_input_set_cur_index ()</h3>
917
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
918
+ 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>,
919
+ <em class="parameter"><code><span class="type">glong</span> a_index</code></em>);</pre>
920
+ <p>Setter of the next byte index.
921
+ It sets the index of the next byte to be read.</p>
922
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
923
+ <div class="refsect3">
924
+ <a name="id-1.2.9.6.19.6"></a><h4>Parameters</h4>
925
+ <div class="informaltable"><table width="100%" border="0">
926
+ <colgroup>
927
+ <col width="150px" class="parameters_name">
928
+ <col class="parameters_description">
929
+ <col width="200px" class="parameters_annotations">
930
+ </colgroup>
636
931
  <tbody>
637
932
  <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>
933
+ <td class="parameter_name"><p>a_this</p></td>
934
+ <td class="parameter_description"><p>the "this pointer" of the current instance
935
+ of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> .</p></td>
936
+ <td class="parameter_annotations"> </td>
655
937
  </tr>
656
938
  <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>
939
+ <td class="parameter_name"><p>a_index</p></td>
940
+ <td class="parameter_description"><p>the new index to set.</p></td>
941
+ <td class="parameter_annotations"> </td>
659
942
  </tr>
660
943
  </tbody>
661
944
  </table></div>
662
945
  </div>
946
+ </div>
663
947
  <hr>
664
948
  <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">
949
+ <a name="cr-input-get-cur-pos"></a><h3>cr_input_get_cur_pos ()</h3>
950
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
951
+ 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>,
952
+ <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>
953
+ <p>Gets the position of the "current byte index" which
954
+ is basically the position of the last returned byte in the
955
+ input stream.</p>
956
+ <p>Returns CR_OK upon successful completion. Otherwise,
957
+ CR_BAD_PARAMETER_ERROR if at least one of the arguments is invalid.
958
+ 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>
959
+ 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
960
+ <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>
961
+ Note that the out parameters of this function are valid if and only if this
962
+ function returns CR_OK.</p>
963
+ <div class="refsect3">
964
+ <a name="id-1.2.9.6.20.6"></a><h4>Parameters</h4>
965
+ <div class="informaltable"><table width="100%" border="0">
966
+ <colgroup>
967
+ <col width="150px" class="parameters_name">
968
+ <col class="parameters_description">
969
+ <col width="200px" class="parameters_annotations">
970
+ </colgroup>
674
971
  <tbody>
675
972
  <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>
973
+ <td class="parameter_name"><p>a_this</p></td>
974
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
975
+ <td class="parameter_annotations"> </td>
682
976
  </tr>
683
977
  <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>
978
+ <td class="parameter_name"><p>a_pos</p></td>
979
+ <td class="parameter_description"><p>out parameter. The returned position.</p></td>
980
+ <td class="parameter_annotations"> </td>
688
981
  </tr>
689
982
  </tbody>
690
983
  </table></div>
691
984
  </div>
985
+ </div>
692
986
  <hr>
693
987
  <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">
988
+ <a name="cr-input-set-cur-pos"></a><h3>cr_input_set_cur_pos ()</h3>
989
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
990
+ 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>,
991
+ <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>
992
+ <p>Sets the current position in the input stream.</p>
993
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
994
+ <div class="refsect3">
995
+ <a name="id-1.2.9.6.21.6"></a><h4>Parameters</h4>
996
+ <div class="informaltable"><table width="100%" border="0">
997
+ <colgroup>
998
+ <col width="150px" class="parameters_name">
999
+ <col class="parameters_description">
1000
+ <col width="200px" class="parameters_annotations">
1001
+ </colgroup>
709
1002
  <tbody>
710
1003
  <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>
1004
+ <td class="parameter_name"><p>a_this</p></td>
1005
+ <td class="parameter_description"><p>the "this pointer" of the current instance of
1006
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
1007
+ <td class="parameter_annotations"> </td>
713
1008
  </tr>
714
1009
  <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>
1010
+ <td class="parameter_name"><p>a_pos</p></td>
1011
+ <td class="parameter_description"><p>the new position.</p></td>
1012
+ <td class="parameter_annotations"> </td>
733
1013
  </tr>
734
1014
  </tbody>
735
1015
  </table></div>
736
1016
  </div>
1017
+ </div>
737
1018
  <hr>
738
1019
  <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">
1020
+ <a name="cr-input-get-parsing-location"></a><h3>cr_input_get_parsing_location ()</h3>
1021
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1022
+ 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>,
1023
+ <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>
1024
+ <p>Gets the current parsing location.
1025
+ The Parsing location is a public datastructure that
1026
+ represents the current line/column/byte offset/ in the input
1027
+ stream.</p>
1028
+ <p>Returns CR_OK upon successful completion, an error
1029
+ code otherwise.</p>
1030
+ <div class="refsect3">
1031
+ <a name="id-1.2.9.6.22.6"></a><h4>Parameters</h4>
1032
+ <div class="informaltable"><table width="100%" border="0">
1033
+ <colgroup>
1034
+ <col width="150px" class="parameters_name">
1035
+ <col class="parameters_description">
1036
+ <col width="200px" class="parameters_annotations">
1037
+ </colgroup>
749
1038
  <tbody>
750
1039
  <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>
1040
+ <td class="parameter_name"><p>a_this</p></td>
1041
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a></p></td>
1042
+ <td class="parameter_annotations"> </td>
764
1043
  </tr>
765
1044
  <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>
1045
+ <td class="parameter_name"><p>a_loc</p></td>
1046
+ <td class="parameter_description"><p>the set parsing location.</p></td>
1047
+ <td class="parameter_annotations"> </td>
768
1048
  </tr>
769
1049
  </tbody>
770
1050
  </table></div>
771
1051
  </div>
1052
+ </div>
772
1053
  <hr>
773
1054
  <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">
1055
+ <a name="cr-input-get-end-of-line"></a><h3>cr_input_get_end_of_line ()</h3>
1056
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1057
+ 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>,
1058
+ <em class="parameter"><code><span class="type">gboolean</span> *a_eol</code></em>);</pre>
1059
+ <p>Gets the end of line flag of the current input.</p>
1060
+ <p>Returns CR_OK upon successful completion, an error code
1061
+ otherwise.</p>
1062
+ <div class="refsect3">
1063
+ <a name="id-1.2.9.6.23.6"></a><h4>Parameters</h4>
1064
+ <div class="informaltable"><table width="100%" border="0">
1065
+ <colgroup>
1066
+ <col width="150px" class="parameters_name">
1067
+ <col class="parameters_description">
1068
+ <col width="200px" class="parameters_annotations">
1069
+ </colgroup>
785
1070
  <tbody>
786
1071
  <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>
1072
+ <td class="parameter_name"><p>a_this</p></td>
1073
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a></p></td>
1074
+ <td class="parameter_annotations"> </td>
793
1075
  </tr>
794
1076
  <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>
1077
+ <td class="parameter_name"><p>a_eol</p></td>
1078
+ <td class="parameter_description"><p>out parameter. The place to put
1079
+ the returned flag</p></td>
1080
+ <td class="parameter_annotations"> </td>
798
1081
  </tr>
799
1082
  </tbody>
800
1083
  </table></div>
801
1084
  </div>
1085
+ </div>
802
1086
  <hr>
803
1087
  <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">
1088
+ <a name="cr-input-set-end-of-line"></a><h3>cr_input_set_end_of_line ()</h3>
1089
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1090
+ 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>,
1091
+ <em class="parameter"><code><span class="type">gboolean</span> a_eol</code></em>);</pre>
1092
+ <p>Sets the end of line flag.</p>
1093
+ <p>Returns CR_OK upon successful completion, an error code
1094
+ otherwise.</p>
1095
+ <div class="refsect3">
1096
+ <a name="id-1.2.9.6.24.6"></a><h4>Parameters</h4>
1097
+ <div class="informaltable"><table width="100%" border="0">
1098
+ <colgroup>
1099
+ <col width="150px" class="parameters_name">
1100
+ <col class="parameters_description">
1101
+ <col width="200px" class="parameters_annotations">
1102
+ </colgroup>
815
1103
  <tbody>
816
1104
  <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>
1105
+ <td class="parameter_name"><p>a_this</p></td>
1106
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
1107
+ <td class="parameter_annotations"> </td>
819
1108
  </tr>
820
1109
  <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>
1110
+ <td class="parameter_name"><p>a_eol</p></td>
1111
+ <td class="parameter_description"><p>the new end of line flag.</p></td>
1112
+ <td class="parameter_annotations"> </td>
829
1113
  </tr>
830
1114
  </tbody>
831
1115
  </table></div>
832
1116
  </div>
1117
+ </div>
833
1118
  <hr>
834
1119
  <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">
1120
+ <a name="cr-input-get-end-of-file"></a><h3>cr_input_get_end_of_file ()</h3>
1121
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1122
+ 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>,
1123
+ <em class="parameter"><code><span class="type">gboolean</span> *a_eof</code></em>);</pre>
1124
+ <p>Gets the end of file flag.</p>
1125
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1126
+ <div class="refsect3">
1127
+ <a name="id-1.2.9.6.25.6"></a><h4>Parameters</h4>
1128
+ <div class="informaltable"><table width="100%" border="0">
1129
+ <colgroup>
1130
+ <col width="150px" class="parameters_name">
1131
+ <col class="parameters_description">
1132
+ <col width="200px" class="parameters_annotations">
1133
+ </colgroup>
844
1134
  <tbody>
845
1135
  <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>
1136
+ <td class="parameter_name"><p>a_this</p></td>
1137
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
1138
+ <td class="parameter_annotations"> </td>
852
1139
  </tr>
853
1140
  <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>
1141
+ <td class="parameter_name"><p>a_eof</p></td>
1142
+ <td class="parameter_description"><p>out parameter the place to put the end of
1143
+ file flag.</p></td>
1144
+ <td class="parameter_annotations"> </td>
857
1145
  </tr>
858
1146
  </tbody>
859
1147
  </table></div>
860
1148
  </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
1149
  </div>
877
1150
  <hr>
878
1151
  <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">
1152
+ <a name="cr-input-set-end-of-file"></a><h3>cr_input_set_end_of_file ()</h3>
1153
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1154
+ 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>,
1155
+ <em class="parameter"><code><span class="type">gboolean</span> a_eof</code></em>);</pre>
1156
+ <p>Sets the end of file flag.</p>
1157
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1158
+ <div class="refsect3">
1159
+ <a name="id-1.2.9.6.26.6"></a><h4>Parameters</h4>
1160
+ <div class="informaltable"><table width="100%" border="0">
1161
+ <colgroup>
1162
+ <col width="150px" class="parameters_name">
1163
+ <col class="parameters_description">
1164
+ <col width="200px" class="parameters_annotations">
1165
+ </colgroup>
890
1166
  <tbody>
891
1167
  <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>
1168
+ <td class="parameter_name"><p>a_this</p></td>
1169
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
1170
+ <td class="parameter_annotations"> </td>
894
1171
  </tr>
895
1172
  <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>
1173
+ <td class="parameter_name"><p>a_eof</p></td>
1174
+ <td class="parameter_description"><p>the new end of file flag.</p></td>
1175
+ <td class="parameter_annotations"> </td>
910
1176
  </tr>
911
1177
  </tbody>
912
1178
  </table></div>
913
1179
  </div>
1180
+ </div>
914
1181
  <hr>
915
1182
  <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">
1183
+ <a name="cr-input-set-line-num"></a><h3>cr_input_set_line_num ()</h3>
1184
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1185
+ 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>,
1186
+ <em class="parameter"><code><span class="type">glong</span> a_line_num</code></em>);</pre>
1187
+ <p>Setter of the current line number.</p>
1188
+ <p>Return CR_OK upon successful completion, an error code otherwise.</p>
1189
+ <div class="refsect3">
1190
+ <a name="id-1.2.9.6.27.6"></a><h4>Parameters</h4>
1191
+ <div class="informaltable"><table width="100%" border="0">
1192
+ <colgroup>
1193
+ <col width="150px" class="parameters_name">
1194
+ <col class="parameters_description">
1195
+ <col width="200px" class="parameters_annotations">
1196
+ </colgroup>
924
1197
  <tbody>
925
1198
  <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>
1199
+ <td class="parameter_name"><p>a_this</p></td>
1200
+ <td class="parameter_description"><p>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>.</p></td>
1201
+ <td class="parameter_annotations"> </td>
928
1202
  </tr>
929
1203
  <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>
1204
+ <td class="parameter_name"><p>a_line_num</p></td>
1205
+ <td class="parameter_description"><p>the new line number.</p></td>
1206
+ <td class="parameter_annotations"> </td>
936
1207
  </tr>
937
1208
  </tbody>
938
1209
  </table></div>
939
1210
  </div>
1211
+ </div>
940
1212
  <hr>
941
1213
  <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">
1214
+ <a name="cr-input-get-line-num"></a><h3>cr_input_get_line_num ()</h3>
1215
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1216
+ 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>,
1217
+ <em class="parameter"><code><span class="type">glong</span> *a_line_num</code></em>);</pre>
1218
+ <p>Getter of the current line number.</p>
1219
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1220
+ <div class="refsect3">
1221
+ <a name="id-1.2.9.6.28.6"></a><h4>Parameters</h4>
1222
+ <div class="informaltable"><table width="100%" border="0">
1223
+ <colgroup>
1224
+ <col width="150px" class="parameters_name">
1225
+ <col class="parameters_description">
1226
+ <col width="200px" class="parameters_annotations">
1227
+ </colgroup>
951
1228
  <tbody>
952
1229
  <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>
1230
+ <td class="parameter_name"><p>a_this</p></td>
1231
+ <td class="parameter_description"><p>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>.</p></td>
1232
+ <td class="parameter_annotations"> </td>
956
1233
  </tr>
957
1234
  <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>
1235
+ <td class="parameter_name"><p>a_line_num</p></td>
1236
+ <td class="parameter_description"><p>the returned line number.</p></td>
1237
+ <td class="parameter_annotations"> </td>
964
1238
  </tr>
965
1239
  </tbody>
966
1240
  </table></div>
967
1241
  </div>
1242
+ </div>
968
1243
  <hr>
969
1244
  <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">
1245
+ <a name="cr-input-set-column-num"></a><h3>cr_input_set_column_num ()</h3>
1246
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1247
+ 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>,
1248
+ <em class="parameter"><code><span class="type">glong</span> a_col</code></em>);</pre>
1249
+ <p>Setter of the current column number.</p>
1250
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1251
+ <div class="refsect3">
1252
+ <a name="id-1.2.9.6.29.6"></a><h4>Parameters</h4>
1253
+ <div class="informaltable"><table width="100%" border="0">
1254
+ <colgroup>
1255
+ <col width="150px" class="parameters_name">
1256
+ <col class="parameters_description">
1257
+ <col width="200px" class="parameters_annotations">
1258
+ </colgroup>
978
1259
  <tbody>
979
1260
  <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>
1261
+ <td class="parameter_name"><p>a_this</p></td>
1262
+ <td class="parameter_description"><p>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>.</p></td>
1263
+ <td class="parameter_annotations"> </td>
987
1264
  </tr>
988
1265
  <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>
1266
+ <td class="parameter_name"><p>a_col</p></td>
1267
+ <td class="parameter_description"><p>the new column number.</p></td>
1268
+ <td class="parameter_annotations"> </td>
991
1269
  </tr>
992
1270
  </tbody>
993
1271
  </table></div>
994
1272
  </div>
1273
+ </div>
995
1274
  <hr>
996
1275
  <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">
1276
+ <a name="cr-input-get-column-num"></a><h3>cr_input_get_column_num ()</h3>
1277
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1278
+ 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>,
1279
+ <em class="parameter"><code><span class="type">glong</span> *a_col</code></em>);</pre>
1280
+ <p>Getter of the current column number.</p>
1281
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1282
+ <div class="refsect3">
1283
+ <a name="id-1.2.9.6.30.6"></a><h4>Parameters</h4>
1284
+ <div class="informaltable"><table width="100%" border="0">
1285
+ <colgroup>
1286
+ <col width="150px" class="parameters_name">
1287
+ <col class="parameters_description">
1288
+ <col width="200px" class="parameters_annotations">
1289
+ </colgroup>
1005
1290
  <tbody>
1006
1291
  <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>
1292
+ <td class="parameter_name"><p>a_this</p></td>
1293
+ <td class="parameter_description"><p>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>.</p></td>
1294
+ <td class="parameter_annotations"> </td>
1013
1295
  </tr>
1014
1296
  <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>
1297
+ <td class="parameter_name"><p>a_col</p></td>
1298
+ <td class="parameter_description"><p>out parameter</p></td>
1299
+ <td class="parameter_annotations"> </td>
1017
1300
  </tr>
1018
1301
  </tbody>
1019
1302
  </table></div>
1020
1303
  </div>
1304
+ </div>
1021
1305
  <hr>
1022
1306
  <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">
1307
+ <a name="cr-input-increment-line-num"></a><h3>cr_input_increment_line_num ()</h3>
1308
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1309
+ 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>,
1310
+ <em class="parameter"><code><span class="type">glong</span> a_increment</code></em>);</pre>
1311
+ <p>Increments the current line number.</p>
1312
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1313
+ <div class="refsect3">
1314
+ <a name="id-1.2.9.6.31.6"></a><h4>Parameters</h4>
1315
+ <div class="informaltable"><table width="100%" border="0">
1316
+ <colgroup>
1317
+ <col width="150px" class="parameters_name">
1318
+ <col class="parameters_description">
1319
+ <col width="200px" class="parameters_annotations">
1320
+ </colgroup>
1031
1321
  <tbody>
1032
1322
  <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>
1323
+ <td class="parameter_name"><p>a_this</p></td>
1324
+ <td class="parameter_description"><p>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>.</p></td>
1325
+ <td class="parameter_annotations"> </td>
1039
1326
  </tr>
1040
1327
  <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>
1328
+ <td class="parameter_name"><p>a_increment</p></td>
1329
+ <td class="parameter_description"><p>the increment to add to the line number.</p></td>
1330
+ <td class="parameter_annotations"> </td>
1044
1331
  </tr>
1045
1332
  </tbody>
1046
1333
  </table></div>
1047
1334
  </div>
1335
+ </div>
1048
1336
  <hr>
1049
1337
  <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">
1338
+ <a name="cr-input-increment-col-num"></a><h3>cr_input_increment_col_num ()</h3>
1339
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1340
+ 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>,
1341
+ <em class="parameter"><code><span class="type">glong</span> a_increment</code></em>);</pre>
1342
+ <p>Increments the current column number.</p>
1343
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1344
+ <div class="refsect3">
1345
+ <a name="id-1.2.9.6.32.6"></a><h4>Parameters</h4>
1346
+ <div class="informaltable"><table width="100%" border="0">
1347
+ <colgroup>
1348
+ <col width="150px" class="parameters_name">
1349
+ <col class="parameters_description">
1350
+ <col width="200px" class="parameters_annotations">
1351
+ </colgroup>
1061
1352
  <tbody>
1062
1353
  <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>
1354
+ <td class="parameter_name"><p>a_this</p></td>
1355
+ <td class="parameter_description"><p>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>.</p></td>
1356
+ <td class="parameter_annotations"> </td>
1065
1357
  </tr>
1066
1358
  <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>
1359
+ <td class="parameter_name"><p>a_increment</p></td>
1360
+ <td class="parameter_description"><p>the increment to add to the column number.</p></td>
1361
+ <td class="parameter_annotations"> </td>
1069
1362
  </tr>
1070
1363
  </tbody>
1071
1364
  </table></div>
1072
1365
  </div>
1366
+ </div>
1073
1367
  <hr>
1074
1368
  <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">
1369
+ <a name="cr-input-get-nb-bytes-left"></a><h3>cr_input_get_nb_bytes_left ()</h3>
1370
+ <pre class="programlisting"><span class="returnvalue">glong</span>
1371
+ 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>
1372
+ <p>Returns the number of bytes left in the input stream
1373
+ before the end, -1 in case of error.</p>
1374
+ <div class="refsect3">
1375
+ <a name="id-1.2.9.6.33.5"></a><h4>Parameters</h4>
1376
+ <div class="informaltable"><table width="100%" border="0">
1377
+ <colgroup>
1378
+ <col width="150px" class="parameters_name">
1379
+ <col class="parameters_description">
1380
+ <col width="200px" class="parameters_annotations">
1381
+ </colgroup>
1382
+ <tbody><tr>
1383
+ <td class="parameter_name"><p>a_this</p></td>
1384
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
1385
+ <td class="parameter_annotations"> </td>
1386
+ </tr></tbody>
1387
+ </table></div>
1388
+ </div>
1389
+ </div>
1390
+ <hr>
1391
+ <div class="refsect2">
1392
+ <a name="cr-input-end-of-input"></a><h3>cr_input_end_of_input ()</h3>
1393
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1394
+ 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>,
1395
+ <em class="parameter"><code><span class="type">gboolean</span> *a_end_of_input</code></em>);</pre>
1396
+ <p>Tests wether the current instance of
1397
+ <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a> has reached its input buffer.</p>
1398
+ <p>Returns CR_OK upon successful completion, an error code otherwise.
1399
+ Note that all the out parameters of this method are valid if
1400
+ and only if this method returns CR_OK.</p>
1401
+ <div class="refsect3">
1402
+ <a name="id-1.2.9.6.34.6"></a><h4>Parameters</h4>
1403
+ <div class="informaltable"><table width="100%" border="0">
1404
+ <colgroup>
1405
+ <col width="150px" class="parameters_name">
1406
+ <col class="parameters_description">
1407
+ <col width="200px" class="parameters_annotations">
1408
+ </colgroup>
1084
1409
  <tbody>
1085
1410
  <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>
1411
+ <td class="parameter_name"><p>a_this</p></td>
1412
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-input.html#CRInput" title="struct CRInput"><span class="type">CRInput</span></a>.</p></td>
1413
+ <td class="parameter_annotations"> </td>
1088
1414
  </tr>
1089
1415
  <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>
1416
+ <td class="parameter_name"><p>a_end_of_input</p></td>
1417
+ <td class="parameter_description"><p>out parameter. Is set to TRUE if
1418
+ the current instance has reached the end of its input buffer,
1419
+ FALSE otherwise.</p></td>
1420
+ <td class="parameter_annotations"> </td>
1092
1421
  </tr>
1093
1422
  </tbody>
1094
1423
  </table></div>
1095
1424
  </div>
1096
1425
  </div>
1097
1426
  </div>
1098
- <div class="footer">
1427
+ <div class="refsect1">
1428
+ <a name="libcroco-cr-input.other_details"></a><h2>Types and Values</h2>
1429
+ <div class="refsect2">
1430
+ <a name="CRInput"></a><h3>struct CRInput</h3>
1431
+ <pre class="programlisting">struct CRInput {
1432
+ CRInputPriv *priv ;
1433
+ };
1434
+ </pre>
1435
+ </div>
1099
1436
  <hr>
1100
- Generated by GTK-Doc V1.18</div>
1437
+ <div class="refsect2">
1438
+ <a name="CRInputPos"></a><h3>struct CRInputPos</h3>
1439
+ <pre class="programlisting">struct CRInputPos {
1440
+ glong line ;
1441
+ glong col ;
1442
+ gboolean end_of_file ;
1443
+ gboolean end_of_line ;
1444
+ glong next_byte_index ;
1445
+ };
1446
+ </pre>
1447
+ </div>
1448
+ <hr>
1449
+ <div class="refsect2">
1450
+ <a name="CRInputPriv"></a><h3>CRInputPriv</h3>
1451
+ <pre class="programlisting">typedef struct _CRInputPriv CRInputPriv;</pre>
1452
+ </div>
1453
+ </div>
1454
+ </div>
1455
+ <div class="footer">
1456
+ <hr>Generated by GTK-Doc V1.24.1</div>
1101
1457
  </body>
1102
1458
  </html>