[asterisk-bugs] [Asterisk 0018023]: [patch] func_strings would like a STRREPLACE function

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 16 05:57:01 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18023 
====================================================================== 
Reported By:                wdoekes
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18023
Category:                   Functions/func_strings
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.2.13 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-09-21 10:10 CDT
Last Modified:              2011-02-16 05:57 CST
====================================================================== 
Summary:                    [patch] func_strings would like a STRREPLACE
function
Description: 
Hi,

I needed a function to replace substrings in a variable:

STRREPLACE(<varname>,<needle>,<replacement>[,<occurrences>])

I hope it gets included, saves me a manual patch ;)

Regards,
Walter Doekes
OSSO B.V.


====================================================================== 

---------------------------------------------------------------------- 
 (0132021) Dovid (reporter) - 2011-02-16 05:57
 https://issues.asterisk.org/view.php?id=18023#c132021 
---------------------------------------------------------------------- 
Hi,

I tried on 1.8.X and it failed. Can anyone update this for 1.8.X so I can
test ? Here is what I get:

patching file funcs/func_strings.c
Hunk https://issues.asterisk.org/view.php?id=1 succeeded at 164 with fuzz 1
(offset 73 lines).
Hunk https://issues.asterisk.org/view.php?id=2 succeeded at 911 with fuzz 1
(offset 387 lines).
Hunk https://issues.asterisk.org/view.php?id=3 FAILED at 1521.
Hunk https://issues.asterisk.org/view.php?id=4 FAILED at 1547.
2 out of 4 hunks FAILED -- saving rejects to file
funcs/func_strings.c.rej

Dovid 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-16 05:57 Dovid          Note Added: 0132021                          
======================================================================




More information about the asterisk-bugs mailing list