protected getXPathStringVal2 ( int j, short mode ) : String | ||
j | int | |
mode | short | |
리턴 | String |
public override System.String evalString(VTDNav vn) { String s = ""; int a = -1; vn.push2(); int size = vn.contextStack2.size; try { a = evalNodeSet(vn); if (a != -1) { int t = vn.getTokenType(a); switch (t) { case VTDNav.TOKEN_STARTING_TAG: case VTDNav.TOKEN_DOCUMENT: s = vn.getXPathStringVal2(a,(short)0); break; case VTDNav.TOKEN_ATTR_NAME: s = vn.toString(a + 1); break; case VTDNav.TOKEN_PI_NAME: //if (a + 1 < vn.vtdSize // || vn.getTokenType(a + 1) == VTDNav.TOKEN_PI_VAL) s = vn.toString(a + 1); break; default: s = vn.toString(a); break; } } } catch (Exception e) { } vn.contextStack2.size = size; reset(vn); vn.pop2(); return s; }
private String lowerCase(VTDNav vn) { if (argCount1 == 1) { if (argumentList.e.NodeSet) { int a = evalFirstArgumentListNodeSet(vn); if (a == -1) return ""; else { try { int t = vn.getTokenType(a); if (t != VTDNav.TOKEN_STARTING_TAG && t != VTDNav.TOKEN_DOCUMENT) return vn.toStringLowerCase(a); return vn.getXPathStringVal2(a, (short)2); } catch (Exception e) { } return ""; } } else { return (argumentList.e.evalString(vn)).ToLower(); } } else throw new System.ArgumentException ("lowerCase()'s argument count is invalid"); }