Return the first index of the occurrence of a character from set in string. Returns 0 if no characters are found. The search is case-sensitive.
FindOneOf(set, string [, start ])
| Parameter |
Description |
|---|---|
| set |
String that contains one or more characters sought |
| string |
String to search |
| start |
Starting position for the search |
...
<!--- depending upon the action desired, perform function --->
<cfswitch expression = "#tag#">
<cfcase value = "find">
<cfset TheAction = Find(FORM.MyString,
CFHTTP.FileContent, 1)>
</cfcase>
<cfcase value = "findNoCase">
<cfset TheAction = FindNoCase(FORM.MyString,
CFHTTP.FileContent, 1)>
</cfcase>
<cfcase value = "findOneof">
<cfset TheAction = FindOneOf(FORM.MyString,
CFHTTP.FileContent, 1)>
</cfcase>
<CFDEFAULTCASE>
<cfset TheAction = Find(FORM.MyString,
CFHTTP.FileContent, 1)>
</CFDEFAULTCASE>
</cfswitch>
...