endsWith() публичный Метод

Test the end of token content at index i matches the content of s, notice that this is to save the string allocation cost of using String's built-in endsWidth
public endsWith ( int index, String s ) : bool
index int
s String
Результат bool
Пример #1
0
 private bool endsWith(VTDNav vn)
 {
     String s2 = argumentList.next.e.evalString(vn);
     if (argumentList.e.NodeSet)
     {
         int a = evalFirstArgumentListNodeSet(vn);
         if (a == -1)
             return "".EndsWith(s2);
         else
         {
             try
             {
                 int t = vn.getTokenType(a);
                 if (t != VTDNav.TOKEN_STARTING_TAG && t != VTDNav.TOKEN_DOCUMENT)
                     return vn.endsWith(a, s2);
                 else
                     return vn.XPathStringVal_EndsWith(a, s2);
             }
             catch (Exception e)
             {
             }
             return false;
         }
     }
     String s1 = argumentList.e.evalString(vn);
     return s1.EndsWith(s2);
 }