You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2008/06/23 08:13:42 UTC

DO NOT REPLY [Bug 45252] New: Improvement for Range.replaceText()

https://issues.apache.org/bugzilla/show_bug.cgi?id=45252

           Summary: Improvement for Range.replaceText()
           Product: POI
           Version: 3.0-dev
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: nhira@cognocys.com
        Depends on: 45001


Created an attachment (id=22157)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22157)
Patch to Range.replaceText() to allow replace-all and updated unit test

The SVN version for Range.replaceText() does not permit the caller to replace
all instances of a piece of text.  It also forces the caller to rebuild the
Range after each call.

The supplied patch is an improved version of replaceText() that permits the
caller to continue working with the Range, an overloaded version that replaces
all instances, and an update to the relevant unit test.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45252] Improvement for Range.replaceText()

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45252


Bug 45252 depends on bug 45001, which changed state.

Bug 45001 Summary: Range.insertBefore() and Range.delete() fail with Unicode characters
https://issues.apache.org/bugzilla/show_bug.cgi?id=45001

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED



-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45252] Improvement for Range.replaceText()

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45252


Nick Burch <ni...@torchbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Nick Burch <ni...@torchbox.com>  2008-06-28 11:58:30 PST ---
Thanks for this fix and test, applied to svn trunk


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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