Lines Matching defs:atom2
2274 * @atom2: an atom
2282 xmlFAEqualAtoms(xmlRegAtomPtr atom1, xmlRegAtomPtr atom2) {
2285 if (atom1 == atom2)
2287 if ((atom1 == NULL) || (atom2 == NULL))
2290 if (atom1->type != atom2->type)
2298 (xmlChar *)atom2->valuep);
2301 ret = (atom1->codepoint == atom2->codepoint);
2315 * @atom2: an atom
2323 xmlFACompareAtoms(xmlRegAtomPtr atom1, xmlRegAtomPtr atom2) {
2326 if (atom1 == atom2)
2328 if ((atom1 == NULL) || (atom2 == NULL))
2332 (atom2->type == XML_REGEXP_ANYCHAR))
2335 if (atom1->type > atom2->type) {
2338 atom1 = atom2;
2339 atom2 = tmp;
2341 if (atom1->type != atom2->type) {
2342 ret = xmlFACompareAtomTypes(atom1->type, atom2->type);
2350 (xmlChar *)atom2->valuep);
2355 if (atom2->type == XML_REGEXP_CHARVAL) {
2356 ret = (atom1->codepoint == atom2->codepoint);
2358 ret = xmlRegCheckCharacter(atom2, atom1->codepoint);
2364 if (atom2->type == XML_REGEXP_RANGES) {
2372 for (j = 0;j < atom2->nbRanges;j++) {
2374 r2 = atom2->ranges[j];
2389 if (atom1->neg != atom2->neg) {