To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78503
                 Issue #|78503
                 Summary|ReplaceString and ArrayOutOfString Functions in Tools/
                        |String module refinement
               Component|tools
                 Version|1.0.0
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P4
            Subcomponent|configure
             Assigned to|rene
             Reported by|mchris





------- Additional comments from [EMAIL PROTECTED] Thu Jun 14 20:28:46 +0000 
2007 -------
The SBASIC function ReplaceString in Tools/String module can be writen as:

[CODE]
Function ReplaceString(s$, new$, old$) as String
    ReplaceString=join(split(s$,old$),new$)
end function
[/CODE]

which is far faster and shorter.

Also the ArrayOutOfString Function can be substituted by function Split follwed
by a ubound call to determine the size of the array.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to