compareTokenString() public method

New in 2.0 Compare the string against the token at the given index value. When a token is an attribute name or starting tag, qualified name is what gets matched against This method has to take care of the underlying encoding conversion as well as entity reference comparison
public compareTokenString ( int index, String s ) : int
index int
s String
return int
Ejemplo n.º 1
0
 private bool compareVString2(int k, VTDNav vn, String s, int op)
 {
     int i = vn.compareTokenString(k, s);
     switch (i)
     {
         case -1:
             if (op == NE || op == GT || op == GE)
             {
                 return true;
             }
             break;
         case 0:
             if (op == EQ || op == LE || op == GE)
             {
                 return true;
             }
             break;
         case 1:
             if (op == NE || op == LE || op == LT)
             {
                 return true;
             }
             break;
     }
     return false;
 }