poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fannin...@apache.org
Subject svn commit: r1832352 - in /poi/trunk/src/ooxml: java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java
Date Sun, 27 May 2018 20:58:21 GMT
Author: fanningpj
Date: Sun May 27 20:58:21 2018
New Revision: 1832352

URL: http://svn.apache.org/viewvc?rev=1832352&view=rev
Log:
[githib-110] rename text segment class. This closes #110

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java?rev=1832352&r1=1832351&r2=1832352&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java Sun May 27 20:58:21
2018
@@ -1468,7 +1468,7 @@ public class XWPFParagraph implements IB
      * @param searched
      * @param startPos
      */
-    public TextSegement searchText(String searched, PositionInParagraph startPos) {
+    public TextSegment searchText(String searched, PositionInParagraph startPos) {
         int startRun = startPos.getRun(),
             startText = startPos.getText(),
             startChar = startPos.getChar();
@@ -1504,7 +1504,7 @@ public class XWPFParagraph implements IB
                                     if (candCharPos + 1 < searched.length()) {
                                         candCharPos++;
                                     } else if (newList) {
-                                        TextSegement segement = new TextSegement();
+                                        TextSegment segement = new TextSegment();
                                         segement.setBeginRun(beginRunPos);
                                         segement.setBeginText(beginTextPos);
                                         segement.setBeginChar(beginCharPos);
@@ -1539,7 +1539,7 @@ public class XWPFParagraph implements IB
      *
      * @param segment
      */
-    public String getText(TextSegement segment) {
+    public String getText(TextSegment segment) {
         int runBegin = segment.getBeginRun();
         int textBegin = segment.getBeginText();
         int charBegin = segment.getBeginChar();

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java?rev=1832352&r1=1832351&r2=1832352&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java Sun
May 27 20:58:21 2018
@@ -559,7 +559,7 @@ public final class TestXWPFParagraph {
 
         XWPFParagraph p = ps.get(0);
 
-        TextSegement segment = p.searchText("sample word document", new PositionInParagraph());
+        TextSegment segment = p.searchText("sample word document", new PositionInParagraph());
         assertNotNull(segment);
 
         assertEquals("sample word document", p.getText(segment));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message