您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ xmlStrEqual函数代码示例

51自学网 2021-06-03 11:46:44
  C++
这篇教程C++ xmlStrEqual函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中xmlStrEqual函数的典型用法代码示例。如果您正苦于以下问题:C++ xmlStrEqual函数的具体用法?C++ xmlStrEqual怎么用?C++ xmlStrEqual使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了xmlStrEqual函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: endElement

void endElement ( void *data, const xmlChar *fullname ) {// CHECK FOR TAGS	if ( xmlStrEqual(fullname,forTag) == 1) {		depth--;				if ( DETAILS ) {			std::cout << "----------------------------/n/nLoop " << loopCount << "/n/n";			fLoop->printArrayRefs();		}		if ( depth == 0 ) {			if ( fLoop->GCDTest() ) {				if ( DETAILS ) {					std::cout << "CANNOT be in parallel./n/n";				}				exit(1);			}			else {				if ( DETAILS ) {					std::cout << "CAN be in parallel./n/n";				}			}		}		delete fLoop;		fLoop = new ForLoop;	}	else if ( xmlStrEqual(fullname,initTag) == 1 )		withinInit = false;	else if ( xmlStrEqual(fullname,typeTag) == 1 )		withinType = false;	else if ( xmlStrEqual(fullname,nameTag) == 1 )		withinName = false; // HAVE TO HAVE MORE BOOLEANS FOR THIS	else if ( xmlStrEqual(fullname,exprTag) == 1 )		withinExpr = false;	else if ( xmlStrEqual(fullname,exprStmtTag) == 1 )	withinExprStmt = false;	else if ( xmlStrEqual(fullname,condTag) == 1 )		withinCond = false;	else if ( xmlStrEqual(fullname,incrTag) == 1 )		{ withinIncr = false; withinBlock = true; }	else if ( xmlStrEqual(fullname,indexTag) == 1 )		withinIndex = false;}
开发者ID:davidsteinberg,项目名称:forallel,代码行数:41,


示例2: pa_xmlNamedPreorderTraversal

template<typename I> static voidpa_xmlNamedPreorderTraversal (							  xmlNode *root, 							  xmlChar *tagURI, 							  xmlChar *tagName, 							  void callback(xmlNode& node, I info),							  I info) {	for(xmlNode *iter=root->children; iter; iter = iter->next) {		if(iter->type == XML_ELEMENT_NODE &&			(xmlStrEqual(iter->name, tagName) ||			xmlStrEqual(tagName, (const xmlChar*)"*"))) {				if(tagURI != NULL &&					(xmlStrEqual(pa_xmlGetNsURI(iter), tagURI) ||					xmlStrEqual(tagURI, (const xmlChar*)"*")))					callback(*iter, info);				else if(tagURI == NULL)					callback(*iter, info);			}			pa_xmlNamedPreorderTraversal(iter, tagURI, tagName, callback, info);	}	return;}
开发者ID:viatsko,项目名称:parser3,代码行数:24,


示例3: gNode

gate* winFlowJoWorkspace::getGate(wsPopNode & node){	xmlXPathObjectPtr resGate=node.xpathInNode("Gate/*");	wsNode gNode(resGate->nodesetval->nodeTab[0]);	xmlXPathFreeObject(resGate);	const xmlChar * gateType=gNode.getNodePtr()->name;	if(xmlStrEqual(gateType,(const xmlChar *)"PolygonGate"))	{		wsPolyGateNode pGNode(gNode.getNodePtr());		if(g_loglevel>=GATE_LEVEL)			COUT<<"parsing PolygonGate.."<<endl;		return(getGate(pGNode));	}	else if(xmlStrEqual(gateType,(const xmlChar *)"RectangleGate"))	{		wsRectGateNode rGNode(gNode.getNodePtr());		if(g_loglevel>=GATE_LEVEL)			COUT<<"parsing RectangleGate.."<<endl;		return(getGate(rGNode));	}	else if(xmlStrEqual(gateType,(const xmlChar *)"EllipsoidGate"))	{		wsEllipseGateNode eGNode(gNode.getNodePtr());		if(g_loglevel>=GATE_LEVEL)			COUT<<"parsing EllipsoidGate.."<<endl;		return(getGate(eGNode));	}	else	{//		COUT<<"gate type: "<<gateType<<" is not supported!"<<endl;		throw(domain_error("invalid  gate type!"));	}}
开发者ID:pontikos,项目名称:flowWorkspace,代码行数:36,


示例4: xsltTestCompMatchCount

static intxsltTestCompMatchCount(xsltTransformContextPtr context,                       xmlNodePtr node,                       xsltCompMatchPtr countPat,                       xmlNodePtr cur){    if (countPat != NULL) {        return xsltTestCompMatchList(context, node, countPat);    }    else {        /*         * 7.7 Numbering         *         * If count attribute is not specified, then it defaults to the         * pattern that matches any node with the same node type as the         * current node and, if the current node has an expanded-name, with         * the same expanded-name as the current node.         */        if (node->type != cur->type)            return 0;        if (node->type == XML_NAMESPACE_DECL)            /*             * Namespace nodes have no preceding siblings and no parents             * that are namespace nodes. This means that node == cur.             */            return 1;        /* TODO: Skip node types without expanded names like text nodes. */        if (!xmlStrEqual(node->name, cur->name))            return 0;        if (node->ns == cur->ns)            return 1;        if ((node->ns == NULL) || (cur->ns == NULL))            return 0;        return (xmlStrEqual(node->ns->href, cur->ns->href));    }}
开发者ID:amaneureka,项目名称:reactos,代码行数:36,


示例5: xmlStrQEqual

intxmlStrQEqual(const xmlChar *pref, const xmlChar *name, const xmlChar *str) {    if (pref == NULL) return(xmlStrEqual(name, str));    if (name == NULL) return(0);    if (str == NULL) return(0);    do {        if (*pref++ != *str) return(0);    } while ((*str++) && (*pref));    if (*str++ != ':') return(0);    do {        if (*name++ != *str) return(0);    } while (*str++);    return(1);}
开发者ID:Cyril2004,项目名称:proto-quic,代码行数:15,


示例6: getLogger

boolImporter::parseLibraryCameras( const Asset& asset_parent,                               xmlNodePtr lib_cameras_node ){    Logger log = getLogger( "Scene.XML.parseLibraryCameras" );    if( !assertNode( lib_cameras_node, "library_cameras" ) ) {        return false;    }    xmlNodePtr n = lib_cameras_node->children;    if( n!=NULL && xmlStrEqual( n->name, BAD_CAST "asset" ) ) {        Asset asset;        if( parseAsset( asset, n ) ) {            m_database.library<Camera>().setAsset( asset );        }        else {            SCENELOG_ERROR( log, "Failed to parse <asset>" );            return false;        }        n = n->next;    }    else {        m_database.library<Camera>().setAsset( asset_parent );    }    while( n!= NULL && xmlStrEqual( n->name, BAD_CAST "camera" ) ) {        if( !parseCamera( m_database.library<Camera>().asset(), n ) ) {            SCENELOG_ERROR( log, "Failed to parse <camera>" );            return false;        }        n = n->next;    }    ignoreExtraNodes( log, n );    nagAboutRemainingNodes( log, n );    return true;}
开发者ID:sintefmath,项目名称:scene,代码行数:36,


示例7: xsltFindElemSpaceHandling

intxsltFindElemSpaceHandling(xsltTransformContextPtr ctxt, xmlNodePtr node) {    xsltStylesheetPtr style;    const xmlChar *val;    if ((ctxt == NULL) || (node == NULL))	return(0);    style = ctxt->style;    while (style != NULL) {	if (node->ns != NULL) {	    val = (const xmlChar *)	      xmlHashLookup2(style->stripSpaces, node->name, node->ns->href);            if (val == NULL) {                val = (const xmlChar *)                    xmlHashLookup2(style->stripSpaces, BAD_CAST "*",                                   node->ns->href);            }	} else {	    val = (const xmlChar *)		  xmlHashLookup2(style->stripSpaces, node->name, NULL);	}	if (val != NULL) {	    if (xmlStrEqual(val, (xmlChar *) "strip"))		return(1);	    if (xmlStrEqual(val, (xmlChar *) "preserve"))		return(0);	}	if (style->stripAll == 1)	    return(1);	if (style->stripAll == -1)	    return(0);	style = xsltNextImport(style);    }    return(0);}
开发者ID:qtekfun,项目名称:htcDesire820Kernel,代码行数:36,


示例8: XDR_A_maxOccurs

static xmlAttrPtr XDR_A_maxOccurs(xmlAttrPtr xdr_attr, xmlNodePtr node){    xmlChar* str = get_attr_val(xdr_attr);    xmlAttrPtr attr;    TRACE("(%p, %p)/n", xdr_attr, node);    if (xmlStrEqual(str, BAD_CAST "*"))        attr = xmlSetProp(node, xs_maxOccurs, xs_unbounded);    else        attr = copy_prop_ignore_ns(xdr_attr, node);    xmlFree(str);    return attr;}
开发者ID:AlexSteel,项目名称:wine,代码行数:15,


示例9: gtodo_client_category_edit

/* returns TRUE is successfull */gboolean gtodo_client_category_edit(GTodoClient *cl, gchar *old, gchar *newn){	if(cl == NULL || old == NULL || newn == NULL) return FALSE;	if(gtodo_client_category_exists(cl, newn) && !gtodo_client_category_exists(cl, old)) return FALSE;	else 	{		xmlNodePtr cur = cl->root->xmlChildrenNode;		while(cur != NULL){			if(xmlStrEqual(cur->name, (xmlChar *)"category")){				xmlChar *temp = xmlGetProp(cur, (const xmlChar *)"title");				if(xmlStrEqual(temp, (const xmlChar *)old))				{					xmlSetProp(cur, (xmlChar *)"title", (xmlChar *)newn);					cur = NULL;				}				else cur = cur->next;				xmlFree(temp);				}			else cur = cur->next;		}	}	gtodo_client_save_xml(cl,NULL);	return TRUE;}
开发者ID:abderrahim,项目名称:anjuta,代码行数:25,


示例10: get_dt_ns

static inline xmlNsPtr get_dt_ns(xmlNodePtr node){    xmlNsPtr ns;    node = get_schema(node);    assert(node != NULL);    FOREACH_NS(node, ns)    {        if (xmlStrEqual(ns->href, DT_href))            break;    }    return ns;}
开发者ID:AlexSteel,项目名称:wine,代码行数:15,


示例11: plugin_read_config

static voidplugin_read_config (Control *ctrl, xmlNodePtr node){    xmlChar *value;    gui *plugin = ctrl->data;    for (node = node->children; node; node = node->next) {        if (xmlStrEqual(node->name, (const xmlChar *)"Windowlist")) {            if ((value = xmlGetProp(node, (const xmlChar *)"includeAll"))) {                plugin->includeAll = atoi(value);                g_free(value);	    }	    break;	}    }}
开发者ID:BackupTheBerlios,项目名称:xfce-goodies-svn,代码行数:16,


示例12: presence_core

/* * Public API */Local::Heap::Heap (boost::shared_ptr<Ekiga::PresenceCore> _presence_core,		   boost::shared_ptr<Local::Cluster> _local_cluster):  presence_core(_presence_core), local_cluster(_local_cluster), doc (){  xmlNodePtr root;  contacts_settings = boost::shared_ptr<Ekiga::Settings> (new Ekiga::Settings (CONTACTS_SCHEMA));  std::string raw = contacts_settings->get_string (ROSTER_KEY);  // Build the XML document representing the contacts list from the configuration  if (!raw.empty ()) {    doc = boost::shared_ptr<xmlDoc> (xmlRecoverMemory (raw.c_str (), raw.length ()), xmlFreeDoc);    if ( !doc)      doc = boost::shared_ptr<xmlDoc> (xmlNewDoc (BAD_CAST "1.0"), xmlFreeDoc);    root = xmlDocGetRootElement (doc.get ());    if (root == NULL) {      root = xmlNewDocNode (doc.get (), NULL, BAD_CAST "list", NULL);      xmlDocSetRootElement (doc.get (), root);    }    for (xmlNodePtr child = root->children; child != NULL; child = child->next)      if (child->type == XML_ELEMENT_NODE	  && child->name != NULL	  && xmlStrEqual (BAD_CAST ("entry"), child->name))	add (child);    // Or create a new XML document  }  else {    doc = boost::shared_ptr<xmlDoc> (xmlNewDoc (BAD_CAST "1.0"), xmlFreeDoc);    root = xmlNewDocNode (doc.get (), NULL, BAD_CAST "list", NULL);    xmlDocSetRootElement (doc.get (), root);    {      // add 500, 501 and 520 at ekiga.net in this case!      std::set<std::string> groups;      groups.insert (_("Services"));      add (_("Echo test"), "sip:[email
C++ xmlStrcasecmp函数代码示例
C++ xmlSetProp函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。