Title:
Bug 84117:Add delimiter parameters to function replaceList()Currently replaceList() is requiring its parameters "list1" and "list2" to be comma seperated
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Sebastian Zartner / Sebastian Zartner (Sebastian Zartner)
Created: 09/10/2010
Components: Language, Functions
Versions: 10.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 280051
Priority/Frequency: Trivial / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 1
Problem:
Add delimiter parameters to function replaceList()Currently replaceList() is requiring its parameters "list1" and "list2" to be comma seperated. This means it is not possible to use a comma inside your substrings to search or your replacement substrings.Adding two new parameters "delimiters1" and "delimiters2" to replaceList() would help here. "delimiters1" would thereby specify the delimiter(s) used for "list1" and "delimiters2" for "list2".
Method:
<cfset searchList = "abc,def;ghi,jkl;mno,pqr"><cfset replacementList = "s,t u,v w,x"><!--- Variable "string" should contain "eiors,tiiow,xjowu,v" after the following function call ---><cfset string = replaceList("eiorabc,defiiomno,pqrjowghi,jkl", searchList, replacementList, ";", " ">
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3042140
External Customer Info:
External Company:
External Customer Name: Sebastian Zartner
External Customer Email: 4E7365D64550DB12992015D5
External Test Config: 09/10/2010
Attachments:
Comments: