CFLib.org – Common Function Library Project

UCaseAll(str)

Last updated May 14, 2002

author

Ivan Rodriguez

Version: 1 | Requires: CF5 | Library: StrLib

Description:
It replaces all the ocurrencies in a string of French and Spanish letters and accents, with its equivalents capitalized.

Return Values:
Returns a string.

Example:

<cfoutput>
#UCaseAll("�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�")#
</cfoutput>

Parameters:

Name Description Required
str The string to format. Yes

Full UDF Source:

/**
 * Returns a string with all words capitalized with special non english characters.
 * 
 * @param str 	 The string to format. (Required)
 * @return Returns a string. 
 * @author Ivan Rodriguez (ivan.rodriguez@de-net.net) 
 * @version 1, May 14, 2002 
 */
function UCaseAll(str){
	var newstr = "";
	var list1 ="�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,";
	var list2 = "�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�";

	newstr = Ucase(str);
	newstr = ReplaceList(newstr,list1,list2);
	return newstr;
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson