[asterisk-bugs] [Asterisk 0015223]: [patch] New asterisk function REPLACE

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 23 23:05:43 CST 2009


The following issue has been ASSIGNED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15223 
====================================================================== 
Reported By:                ajohnson
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15223
Category:                   Functions/func_strings
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Target Version:             1.8
Asterisk Version:           SVN 
JIRA:                       SWP-283 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 197994 
Request Review:              
====================================================================== 
Date Submitted:             2009-05-29 12:02 CDT
Last Modified:              2009-11-23 23:05 CST
====================================================================== 
Summary:                    [patch] New asterisk function REPLACE
Description: 
[Synopsis]
Replace a set of characters with another character in a given string


[Description]
Iterates through a string replacing all the <find-chars> with
<replace-char>.
NOTE: <replace-char> may be either empty or contain one character

[Syntax]
REPLACE(find-chars,replace-char,string)

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

---------------------------------------------------------------------- 
 (0114215) svnbot (reporter) - 2009-11-23 23:05
 https://issues.asterisk.org/view.php?id=15223#c114215 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 230994

U   trunk/CHANGES
U   trunk/funcs/func_strings.c
U   trunk/include/asterisk/app.h

------------------------------------------------------------------------
r230994 | tilghman | 2009-11-23 23:05:41 -0600 (Mon, 23 Nov 2009) | 16
lines

Add REPLACE & PASSTHRU functions, overhaul of func_strings, fix API docs
for the ast_get_encoded_* functions.
 * Add REPLACE function, which searches a given variable for a set of
   characters and replaces each with a given character.
 * Add PASSTHRU function, which passes a literal string back, like a NoOp
for
   functions.  Intent is to be able to specify a literal string to another
   function that takes a variable name as an argument.
 * Let the array manipulation functions work with dialplan functions, in
   addition to variables.  This allows the array manipulation functions to
   modify ASTDB and ODBC backends, assuming the func_odbc configuration
has
   both read and write functions.
(closes issue https://issues.asterisk.org/view.php?id=15223)
 Reported by: ajohnson
Patches: 
       20091112__issue15223.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen, tilghman

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=230994 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-23 23:05 svnbot         Note Added: 0114215                          
2009-11-23 23:05 svnbot         Status                   ready for review =>
assigned
======================================================================




More information about the asterisk-bugs mailing list