toStringUpperCase() public method

Convert a token at the given index to a String and any lower case character will be converted to upper case, (entities and char references resolved). An attribute name or an element name will get the UCS2 string of qualified name
public toStringUpperCase ( int index ) : String
index int
return String
Ejemplo n.º 1
0
        private String upperCase(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.toStringUpperCase(a);
                            return vn.getXPathStringVal2(a, (short)1);
                        }
                        catch (Exception e)
                        {
                        }
                        return "";
                    }
                }
                else
                {
                    return (argumentList.e.evalString(vn)).ToUpper();
                }
            }
            else
                throw new System.ArgumentException
                ("upperCase()'s argument count is invalid");

        }