~ubuntu-branches/ubuntu/natty/raptor/natty-updates

« back to all changes in this revision

Viewing changes to docs/raptor-tutorial-querying-functionality.xml

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2006-10-22 21:15:07 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20061022211507-c93p7f5mhapszeom
Tags: 1.4.13-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
of the
83
83
<link linkend="raptor-new-parser-for-content"><function>raptor_new_parser_for_content()</function></link>.</para>
84
84
 
85
 
<example>
 
85
<example id="raptor-example-list-all-parser-features">
86
86
<title>List all features of parsers with an enumerate function</title>
87
87
<programlisting>
88
88
  int i;
89
 
  for(i=0; 1; i++) {
 
89
  for(i=0; i &lt; RAPTOR_FEATURE_LAST; i++) {
90
90
    const char *name;
91
91
    raptor_uri *uri;
92
92
    const char *label;
93
93
    if(raptor_features_enumerate((raptor_feature)i, &amp;name, &amp;uri, &amp;label))
94
 
      break;
 
94
      continue;
95
95
    /* do something with name, uri and label */
96
96
  }
97
97
</programlisting>