What's New at CFLib.org?

 
Nov 21, 2002
This is what's new at CFLib.org, from September 2 through November 25, 2002. All UDF's are assumed to be in CF5 syntax unless otherwise noted.
CssCompactFormat
Replaces all unnecessary characters from a section of CSS code.
 
HtmlCompressFormat
Replaces a huge amount of unnecessary whitespace from your HTML code.
 
AgeSinceDOB
Given the date of birth, returns age.
 
Convert2Number
Converts any numeric string (even ones with currency symbols to a number).
 
FileCanRead
Checks if a file can be read. (Version: CFMX)
 
FileCanWrite
Checks to see if a file can be written to. (Version: CFMX)
 
FileIsHidden
Returns if a file is hidden or not. (Version: CFMX)
 
FileLastModified
Returns the date the file was last modified. (Version: CFMX)
 
FileSetReadOnly
Makes a file ReadOnly. (Version: CFMX)
 
Get
Examine the contents of a BINARY file. (Version: CFMX)
 
GetDSNs
Gets a list of DSNs. (Version: CFMX)
 
GetPercentile
Function which gets the value corresponding to a certain percentile from a list of numeric values.
 
IsListInList
Checks whether all elements of list X are found in list Y.(Version: CFMX)
 
PhoneFormat
Allows you to specify the mask you want added to your phone number.
 
QueryToXML
Generates an XMLDoc object from a basic CF Query. (Version: CFMX)
 
RandString
Returns a random string of the specified length of either alpha, numeric or mixed-alpha-numeric characters.
 
XMLUnFormat
UN-escapes the five forbidden characters in XML data.
 
BRCurrencyFormat
Works like the built-in function lsCurrencyFormat, but does it right for Brazilian Currency (R$ - Real). (Version: CFMX)
 
DayAsString
Returns a string for a day value.
 
DownLoadTime56k
Returns estimated download time for a 56k modem given the file size.
 
MDYAsString
Returns a date in long text format.
 
StripAnchors
A function that will strip out all anchors in text that has been passed as an argument.
 
VerityClean
Creates a verity "safe" search string.
 
YearAsString
Returns a string value for a numeric year.
 
Include
Mimics the CFINCLUDE tag. (Version: CFMX)
 
Abort
Mimics the CFABORT tag. (Version: CFMX)
 
CFChartDateFormat
Formats a date/time value for use on the y-axis in CFCHART.
 
DirectoryCreate
Mimics the CFDIRECTORY, action="create" command. (Version: CFMX)
 
DirectoryDelete
Mimics the CFDIRECTORY tag, action="delete" command. (Version: CFMX)
 
DirectoryList
Mimics the CFDIRECTORY, action="list" command. (Version: CFMX)
 
DirectoryRename
Mimics the CFDIRECTORY, action="rename" command. (Version: CFMX)
 
Dump
Mimics the CFDUMP tag. (Version: CFMX)
 
Execute
Mimics the CFEXECUTE tag. (Version: CFMX)
 
FileAppend
Mimics the CFFILE, action="append" command. (Version: CFMX)
 
FileCopy
Mimics the CFFILE, action="copy" command. (Version: CFMX)
 
FileDelete
Mimics the CFFILE, action="delete" command. (Version: CFMX)
 
FileInfo
Returns information about a file. (Version: CFMX)
 
FileMove
Mimics the CFFILE, action="move" command. (Version: CFMX)
 
FileNamesLowerCase
Makes all files in a directory lower case. (Version: CFMX)
 
FileWrite
Mimics the CFFILE, action="write" command. (Version: CFMX)
 
HTMLHead
Mimics the CFHTMLHEAD tag.(Version: CFMX)
 
IsCFC
Returns a boolean for whether a CF variable is a CFC instance. (Version: CFMX)
 
IsScheduledTask
Returns true if the specified task name exists as a scheduled task in the CF Administrator. (Version: CFMX)
 
Location
Mimics the CFLOCATION tag. (Version: CFMX)
 
QueryGetSQL
Returns the SQL statement used to generate the specified query. (Version: CFMX)
 
QuerySort
Sorts a query using Query of Query. (Version: CFMX)
 
Throw
Mimics the CFTHROW tag. (Version: CFMX)
 
WDDXDeserialize
Allows for deserialization of WDDX data. (Version: CFMX)
 
WDDXFileRead
Reads a file containing WDDX and returns the CF variable. (Version: CFMX)
 
WDDXFileWrite
Write a flat file containing a WDDX packet of any CF variable. (Version: CFMX)
 
WDDXSerialize
Allows for serialization to WDDX. (Version: CFMX)
 
WriteFileAndDirectories
Automatically creates any missing directories before writing to the specified file. (Version: CFMX)
 
ZipFileNew
Create a zip file of a directory or just a file. (Version: CFMX)
 
ActivateURL
This function takes URLs in a text string and turns them into links.
 
ArraySort2D
Sorts a two dimensional array by the specified column in the second dimension.
 
Byline
Generates a byline from a list of names.
 
CountDown
Counts down to a date.
 
FileReadCom
Reads a text file, and returns content as a string.
 
GetLoadTime
Measures the elapsed time (load time) from when the single function was first called to the time it was last called.
 
ListDiffDup
Compares two lists and returns the elements that are unique for each list.
 
ListNext
Given the current list item, returns the next item within a list of unique values.
 
NextN
Enables next 'n' browsing of a record set.
 
QueryDeDupe
Removes duplicate rows from a query based on a key column.
 
URLDecrypt
Add security by encrypting and decrypting URL variables. See URLEncrypt.
 
URLEncrypt
Add security by encrypting and decrypting URL variables.
 
DaysTilChristmas
Returns an integer of the days left before Christmas.
 
GetContainer
Gets the next text container (placeholder, tag, etc.) from a string as designated by starting and ending identifiers.
 
GetEnv
Returns environment information. (Windows only!)(Version: CFMX)
 
GetRootPath
Determines the root path of the application without hard-coding.
 
IsMSSQLGUID
Returns true if the string is a MS SQL GUID.
 
OrderListByList
Reorders a list to the order of another, placing elements from the complete list not found in the second at the end of the reordered list.
 
StructToXML
Converts a simple structure to a valid XML document.
 
SymRound
Symmetrically rounds any number to a specific decimal point, preventing a common "rounding bias" from skewing results.
 
HighlightFromTo
Applies a simple highlight from and to a given position in a string.
 
IPAddress2IPDottedDecimal
Converts an IP address to a 32-bit dotted decimal IP number.
 
IPDottedDecimal2IPAddress
Converts a 32-bit dotted decimal IP number to an IP address.
 
IsValidPhone
Simple Validation for Phone Number syntax.
 
ListSplit
A split function for lists, splitting the original list into lists of n array elements.
 
LocalTime
Function that returns adjusted local server time. (Version: CFMX)
 
ParsePOPSubject
Parses subjects returned by CFPOP.
 
Secure
This function validates user permissions against required permissions using Bit, List or custom validation.
 
SecureMX
This function validates user permissions against required permissions using either Bit, List or custom validation. (Version: CFMX)
 
TrailingZeroes
Restores significant trailing zeroes which may have been omitted during calculations.
 
DeMoronize
Fixes text using Microsoft Latin-1 "Extentions", namely ASCII characters 128-160.
 
DollarFormat2
Works like the built-in function DollarFormat, but does no rounding.
 
FncFileSize
Will take a number returned from a File.Filesize, calculate the number in terms of Bytes/Kilobytes/Megabytes and return the result.
 
GetTagContent
Returns the content enclosed in a tag pair.
 
HideLink
Disguise a link using JavaScript's window.status attribute.
 
HTTPHeader
Mimics the CFHEADER tag. (Version: CFMX)
 
NullColumn
Useful in constructing SQL statements that must handle empty strings as NULLs.
 
SpaceCap
Returns a string with a space before each capital letter.
 
VarToScript
Reverses a CF variable into CFScript.
 
ArrayFindSorted
Locate a value in an already-sorted array.
 
ArrayFind
Like listFind(), except with an array.
 
ArrayFindNoCase
Like listFindNoCase(), but for arrays.
 
GuidToString
Accepts a numeric GUID stored in a Byte Array and converts it to a string in the normal convention. (Version: CFMX)
 
IsScientific
Returns true if passed value is formatted in "baseEexp" scientific notation.
 
NumbersOnly
Strips all non-numeric characters from a string.
 
QueryStringChangeVar
Changes a var in a query string.
 
AsciiToDec
Convert ASCII characters into a decimal number.
 
BracketNumberFormat
Returns a negative number in brackets.
 
CommaFormat
Adds commas after every third non-ending digit to the left of the decimal point.
 

Privacy | FAQ | Site Map | About | Guidelines | Contact | Advertising | What is ColdFusion?
House of Fusion | ColdFusion Jobs | Blog of Fusion | AHP Hosting