Package net.sf.saxon.sort

Examples of net.sf.saxon.sort.IntRangeSet$IntRangeSetIterator


     * @param mask identifies the properties of the required category
     * @return the set of characters in the given category.
     */

    public static IntRangeSet getCategory(byte mask) {
        IntRangeSet irs = new IntRangeSet();
        for (int i=0; i<65536; i++) {
            if ((data[i]&mask) != 0) {
                irs.add(i);
            }
        }
        if ((mask & (NAME_START_11_MASK | NAME_11_MASK)) != 0) {
            irs.addRange(UTF16CharacterSet.NONBMP_MIN, MAX_XML11_NAME_CHAR);
        }
        return irs;
    }
View Full Code Here


    private static CharClass makeNameCharClass(byte mask) {
        List ranges = new ArrayList();
        // Add colon to the set of characters matched
        ranges.add(new SingleChar(':'));
        // Plus all the characters from the NCName tables
        IntRangeSet members = XMLCharacterData.getCategory(mask);
        int used = members.getNumberOfRanges();
        int[] startPoints = members.getStartPoints();
        int[] endPoints = members.getEndPoints();
        for (int i=0; i<used; i++) {
            if (startPoints[i] == endPoints[i]) {
                ranges.add(new SingleChar(startPoints[i]));
            } else {
                ranges.add(new CharRange(startPoints[i], endPoints[i]));
View Full Code Here

    private static CharClass makeNameCharClass(byte mask) {
        List ranges = new ArrayList();
        // Add colon to the set of characters matched
        ranges.add(new SingleChar(':'));
        // Plus all the characters from the NCName tables
        IntRangeSet members = XMLCharacterData.getCategory(mask);
        int used = members.getNumberOfRanges();
        int[] startPoints = members.getStartPoints();
        int[] endPoints = members.getEndPoints();
        for (int i=0; i<used; i++) {
            if (startPoints[i] == endPoints[i]) {
                ranges.add(new SingleChar(startPoints[i]));
            } else {
                ranges.add(new CharRange(startPoints[i], endPoints[i]));
View Full Code Here

     * @param mask identifies the properties of the required category
     * @return the set of characters in the given category.
     */

    public static IntRangeSet getCategory(byte mask) {
        IntRangeSet irs = new IntRangeSet();
        for (int i=0; i<65536; i++) {
            if ((data[i]&mask) != 0) {
                irs.add(i);
            }
        }
        if ((mask & (NAME_START_11_MASK | NAME_11_MASK)) != 0) {
            irs.addRange(UTF16.NONBMP_MIN, MAX_XML11_NAME_CHAR);
        }
        return irs;
    }
View Full Code Here

    private static CharClass makeNameCharClass(byte mask) {
        List ranges = new ArrayList();
        // Add colon to the set of characters matched
        ranges.add(new SingleChar(':'));
        // Plus all the characters from the NCName tables
        IntRangeSet members = XMLCharacterData.getCategory(mask);
        int used = members.getNumberOfRanges();
        int[] startPoints = members.getStartPoints();
        int[] endPoints = members.getEndPoints();
        for (int i=0; i<used; i++) {
            if (startPoints[i] == endPoints[i] && i <= 65535) {
                ranges.add(new SingleChar((char)startPoints[i]));
            } else {
                ranges.add(new CharRange(startPoints[i], endPoints[i]));
View Full Code Here

TOP

Related Classes of net.sf.saxon.sort.IntRangeSet$IntRangeSetIterator

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.