コード例 #1
0
ファイル: ruby_xml_reader.c プロジェクト: GREENMASK/mgr
/*
 * call-seq:
 *    reader.standalone -> code
 *
 * Determine the standalone status of the document being read.
 *
 * Return 1 if the document was declared to be standalone, 0 if it was
 * declared to be not standalone, or -1 if the document did not specify its
 * standalone status or in case of error.
 */
static VALUE rxml_reader_standalone(VALUE self)
{
  xmlTextReaderPtr xreader = rxml_text_reader_get(self);
  return INT2FIX(xmlTextReaderStandalone(xreader));
}
コード例 #2
0
ファイル: ruby_xml_reader.c プロジェクト: astro/libxml-ruby
/*
 * call-seq:
 *    reader.standalone -> code
 *
 * Determine the standalone status of the document being read.
 *
 * Return 1 if the document was declared to be standalone, 0 if it was
 * declared to be not standalone, or -1 if the document did not specify its
 * standalone status or in case of error.
 */
static VALUE rxml_reader_standalone(VALUE self)
{
  return INT2FIX(xmlTextReaderStandalone(rxml_text_reader_get(self)));
}
コード例 #3
0
ファイル: xmlreader.c プロジェクト: anhk/lua-xmlreader
/* reader:is_standalone() */
static int xmlreader_is_standalone(lua_State *L) {
  xmlreader xr = check_xmlreader(L, 1);

  int ret = xmlTextReaderStandalone(xr);
  BOOL_OR_ERROR(L, ret);
}