Esempio n. 1
0
/*
 * call-seq:
 *    reader.namespace_declaration? -> bool
 *
 * Determine whether the current node is a namespace declaration rather than a
 * regular attribute.
 */
static VALUE rxml_reader_namespace_declaration(VALUE self)
{
  return xmlTextReaderIsNamespaceDecl(rxml_text_reader_get(self)) ? Qtrue
      : Qfalse;
}
Esempio n. 2
0
/* @method Int XmlReader.isNamespaceDecl() */
METHOD XmlReader_isNamespaceDecl(Ctx *ctx, knh_sfp_t *sfp)
{
    xmlTextReaderPtr reader = (xmlTextReaderPtr) p_cptr(sfp[0]);
    int ret = xmlTextReaderIsNamespaceDecl(reader);
    KNH_RETURN_Int(ctx,sfp,ret);
}
Esempio n. 3
0
/* reader:is_namespace_declaration() */
static int xmlreader_is_namespace_declaration(lua_State *L) {
  xmlreader xr = check_xmlreader(L, 1);

  int ret = xmlTextReaderIsNamespaceDecl(xr);
  BOOL_OR_ERROR(L, ret);
}
Esempio n. 4
0
//## @Native boolean XmlReader.isNamespaceDecl();
static KMETHOD XmlReader_isNamespaceDecl(KonohaContext *kctx, KonohaStack *sfp)
{
	xmlTextReaderPtr reader = getRawXmlReader(sfp[0]);
	int ret = (reader != NULL) ? xmlTextReaderIsNamespaceDecl(reader) : 0;
	KReturnUnboxValue(ret);
}