Package client.net.sf.saxon.ce.regex

Examples of client.net.sf.saxon.ce.regex.UnicodeString


    public static boolean isValidNCName(CharSequence ncName) {
        int len = ncName.length();
        if (len==0) {
            return false;
        }
        UnicodeString us = GeneralUnicodeString.makeUnicodeString(ncName);
        if (!isNCNameStartChar(us.charAt(0))) {
            return false;
        }
        for (int i=1; i<len; i++) {
            if (!isNCNameChar(us.charAt(i))) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.regex.UnicodeString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.