You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@daedelus.apache.org on 2000/12/31 10:40:32 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/stree TextImpl.java
sboag 00/12/31 01:40:32
Modified: java/src/org/apache/xalan/stree TextImpl.java
Log:
Added getStartOffsetInBuffer and getLengthInBuffer
for debugging purposes from another file, without
causing the string to be created. These
also may well be useful for some other purposes,
namely, optimizations where the string is
not created.
Revision Changes Path
1.9 +15 -1 xml-xalan/java/src/org/apache/xalan/stree/TextImpl.java
Index: TextImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/TextImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- TextImpl.java 2000/11/23 04:57:39 1.8
+++ TextImpl.java 2000/12/31 09:40:32 1.9
@@ -76,9 +76,23 @@
/** Start of text from this Text node */
protected int m_start;
+
+ /** Get the start of text in the text buffer.
+ * @return the start of text in the text buffer. */
+ public int getStartOffsetInBuffer()
+ {
+ return m_start;
+ }
- /** Length of text from this text node */
+ /** The length of text in the text buffer. */
protected int m_length;
+
+ /** Get the length of text in the text buffer.
+ * @return the length of text in the text buffer. */
+ public int getLengthInBuffer()
+ {
+ return m_start;
+ }
/**
* Constructor TextImpl