Rev 1075 | Blame | Last modification | View Log | RSS feed
<!--* FCKeditor - The text editor for internet* Copyright (C) 2003-2006 Frederico Caldeira Knabben** Licensed under the terms of the GNU Lesser General Public License:* http://www.opensource.org/licenses/lgpl-license.php** For further information visit:* http://www.fckeditor.net/** "Support Open Source software. What about a donation today?"** File Name: util.asp* This file include generic functions used by the ASP Connector.** File Authors:* Frederico Caldeira Knabben (fredck@fckeditor.net)--><%Function RemoveFromStart( sourceString, charToRemove )Dim oRegexSet oRegex = New RegExpoRegex.Pattern = "^" & charToRemove & "+"RemoveFromStart = oRegex.Replace( sourceString, "" )End FunctionFunction RemoveFromEnd( sourceString, charToRemove )Dim oRegexSet oRegex = New RegExpoRegex.Pattern = charToRemove & "+$"RemoveFromEnd = oRegex.Replace( sourceString, "" )End FunctionFunction ConvertToXmlAttribute( value )ConvertToXmlAttribute = Replace( value, "&", "&" )End FunctionFunction InArray( value, sourceArray )Dim iFor i = 0 to UBound( sourceArray )If sourceArray(i) = value ThenInArray = TrueExit FunctionEnd IfNextInArray = FalseEnd Function%>