Examples of condense()


Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

                return new AnyURIValue(s);

            case GENERATE_ID:
                FastStringBuffer buffer = new FastStringBuffer(FastStringBuffer.TINY);
                node.generateId(buffer);
                buffer.condense();
                return new StringValue(buffer);

            case DOCUMENT_URI:
                // If the node is in the document pool, get the URI under which it is registered.
                // Otherwise, return its systemId.
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

            AtomicValue val = (AtomicValue)argument[i].evaluateItem(c);
            if (val!=null) {
                sb.append(val.getStringValueCS());
            }
        }
        return StringValue.makeStringValue(sb.condense());
    }

    /**
     * Process the instruction in push mode. This avoids constructing the concatenated string
     * in memory, instead each argument can be sent straight to the serializer.
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

        for (int i = pos; i < len; i++) {
            sb.appendWideChar(in.charAt(i));
        }

        // Return string buffer
        return sb.condense();
    }


    /**
     * Test whether the character at a given position is a newline
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

                    if (it == null) {
                        break;
                    }
                    sb.append(it.getStringValueCS());
                }
                return sb.condense();
            default:
                return node.getStringValueCS();
        }
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

        if (fsb.length() == 0) {
            internalError();
        }

        // Emit the instruction into the program
        node.atom = GeneralUnicodeString.makeUnicodeString(fsb.condense());
        return appendNode(node);
    }

    private int appendNode(Operation node) {
        instructions.add(node);
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

                sb.append(next.getStringValueCS());
            }
            next = next.getNextInDocument(this);
        }
        if (sb==null) return "";
        return sb.condense();
    }

    /**
     * Add a child node to this node. For system use only. Note: normalizing adjacent text nodes
     * is the responsibility of the caller.
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

                    Node textNode = node;
                    for (int i=0; i<span; i++) {
                        fsb.append(emptyIfNull(getValue(textNode)));
                        textNode = textNode.getNextSibling();
                    }
                    return fsb.condense();
                }

            case Type.COMMENT:
            case Type.PROCESSING_INSTRUCTION:
                return emptyIfNull(getValue(node));
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

        if (argument.length == 1) {
            sb.append(it.getStringValueCS());
            while (true) {
                it = iter.next();
                if (it == null) {
                    return StringValue.makeStringValue(sb.condense());
                }
                sb.append(it.getStringValueCS());
            }

        } else {
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

            sb.append(it.getStringValueCS());

            while (true) {
                it = iter.next();
                if (it == null) {
                    return StringValue.makeStringValue(sb.condense());
                }
                sb.append(sep);
                sb.append(it.getStringValueCS());
            }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.condense()

            } else // output a surrogate pair
                sb.append(UTF16CharacterSet.highSurrogate((int)next));
                sb.append(UTF16CharacterSet.lowSurrogate((int)next));
            }
        }
        return StringValue.makeStringValue(sb.condense());
    }


}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.