CFLib.org – Common Function Library Project

CFMLLib

Last updated October 17, 2014 / 53 Released UDF(s)
HTTPHeader

Mimics the CFHEADER tag. | Requires: CF6

Throw

Mimics the CFTHROW tag. | Requires: CF6

DirectoryCreate

Mimics the cfdirectory, action="create" command. | Requires: CF6

DirectoryDelete

Mimics the cfdirectory tag, action="delete" command. | Requires: CF6

DirectoryRename

Mimics the cfdirectory, action="rename" command. | Requires: CF6

FileAppend

Mimics the cffile, action="append" command. | Requires: CF6

FileDelete

Mimics the cffile, action="delete" command. | Requires: CF6

FileInfo

Returns information about a file. | Requires: CF6

FileMove

Mimics the cffile, action="move" command. | Requires: CF6

FileWrite

Mimics the cffile, action="write" command. | Requires: CF6

HTMLHead

Mimics the CFHTMLHEAD tag. | Requires: CF6

Location

Mimics the cflocation tag. | Requires: CF6

WDDXFileWrite

Write a flat file containing a WDDX packet of any CF variable | Requires: CF6

WDDXFileRead

Reads a file containing WDDX and returns the CF variable. | Requires: CF6

Abort

Mimics the cfabort tag. | Requires: CF6

Dump

Mimics the cfdump tag. | Requires: CF6

Execute

Mimics the cfexecute tag. | Requires: CF6

WDDXSerialize

Allows for serialization to WDDX. | Requires: CF6

WDDXDeserialize

Allows for deserialization of WDDX data. | Requires: CF6

Flush

Mimics the CFFLUSH tag and sends all content to the screen. | Requires: CF6

DirectoryList

Mimics the cfdirectory, action="list" command. | Requires: CF6

Include

Mimics the cfinclude tag. | Requires: CF6

FileCopy

Mimics the cffile, action="copy" command. | Requires: CF6

IpInRange

determine if IP is with in a range. | Requires: CF7

REReplaceCallback

REReplaceCallback behaves like REReplace, except instead of supplying a replacement string, you supply a function to invoke on each match. | Requires: CF8

cfLipsum

Converts a feed of lorem ipsum text into a string for output. | Requires: CF5

stringToAscii

I convert a string to ASCII characters. | Requires: CF6

indentXml

indentXml pretty-prints XML and XML-like markup without requiring valid XML. | Requires: CF8

uploadFile

Replaces cffile upload, handling security checks and providing better error handling. | Requires: CF6

getBankHolidays

Returns a struct with the bank holidays of Germany | Requires: CF5

parseINI

Parses an INI file into a structure. | Requires: CF8

isColdFusionVersionAtleast

Checks the server's ColdFusion product version | Requires: CF9

castQueryColumn

Will recast a query column to a different datatype. | Requires: CF9

stripExtendedAscii

Removes all extended and non-printing ASCII characters from a string. | Requires: CF5

deDupeArray

Removes duplicate values from an array. | Requires: CF9

iniToStruct

Converts ini file(s) to a struct. | Requires: CF9

getProfileStringUTF8

Unicode language translator ((UTF-8)) | Requires: CF9

ArraySplice

Mimics the functionality of JavaScript Splice() method (https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice) | Requires: CF8

isODBCDate

Checks if a string is an ODBC formatted date, time, or timestamp | Requires: CF9

getProfileSectionsUTF8

UTF8-aware implementation of getProfileSections() | Requires: CF9

getVincentyDistance

Calculates geodetic distance between two points specified by latitude/longitude using Vincenty inverse formula for ellipsoids: http://www.movable-type.co.uk/scripts/latlong-vincenty.html | Requires: CF9

isArrayOf

Validates an array of [anything]. | Requires: CF9

nthPercentile

Gets the nth percentile of the given population | Requires: CF9

replaceWithCallback

Analogous to reReplace()/reReplaceNoCase(), except the replacement is the result of a callback, not a hard-coded string | Requires: CF9

getRange

Gets the difference between the largest and smallest values in a given data set (statistics) | Requires: CF9

arrayReduce

CFML implementation of Array.reduce() | Requires: CF9

hasDoNotTrackHeader

Support for the "Do Not Track" HTTP header | Requires: CF9

createEventObject

Creates functions for event-handling in CFML | Requires: CF10

createLocalisedDayOfWeekAsInteger

Returns a localised version of dayOfWeekAsInteger() (http://www.cflib.org/udf/dayOfWeekAsInteger) | Requires: CF10

savecontent

Implements CFSAVECONTENT as a function | Requires: CF10

queryGetRow

This function returns a struct having all the lowercased columns as keys and their corresponding values | Requires: CF9

queryExecute

Backport of QueryExecute in CF11 to CF9 & CF10 | Requires: CF9

createPrimeNumberSequence

Creates a "generator" for returning prime numbers, in sequence | Requires: CF10

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson