What's New at CFLib.org?

 
Jun 28, 2002
Bin2Hex
Converts binary data to hexadecimal format.
ccEscape
Escapes a credit card number, showing only the last 4 digits. The other digits are replaced with the * character.
FibCalc
This script Calculates the Fibonacci sequence (each integer is the sum of the two previous integers).
FibGen
Returns the Fibonacci sequence to n places given a starting point of x and y.
FixMacPost
Remove extra characters from a form post added by Mac IE.
Form2QS
Converts form variables to query string.
FormattedValueOrString
Returns either a formatted value or the passed default string.
GetCurrentURL
Get the URL of the current page.
GetDB2TimeStamp
Takes a ColdFusion date object and returns a DB2 formatted timestamp.
GetGoogleKeywords
Pass it a http_referer value and this fuction will parse out the keywords used to find it if referred from Google.
GetShift
Returns the work shift for a sequence based work schedule.
iMailPasswordDecryption
Decryption of the Password for an IPSWITCH IMail-Account (Tested for IMail 6).
IsHomeCircuit
A template calling itself is at home; otherwise, it's not at home.
ListDiff
Compares two lists and returns the elements that do not appear in both lists. Returns a list that contains the elementsrest between list1 and list2.
ListFormatted
Adds formatting to list elements, for displaying lists in a more readable fashion.
ListLoop
Applies simple evaluations to every element in a list.
Logic2bit
Converts logic bit constants (TRUE,"Yes",1,FALSE,"No",0) or logical expressions to bit values (1,0). A non-boolean value returns a -1 value.
LSShortDateFormat
Return a date in a locale-specific short form.
MSSQLCreateUUID
Creates UUIDs safe for use in MSSQL UNIQUEIDENTIFIER fields.
MySQLDT2TS
Converts a CF DateTime object into a MySQL timestamp.
MySQLTS2DT
Converts a MySQL timestamp to a CF DateTime object.
ParagraphFormat2
An enhanced version of ParagraphFormat.
Query2Excel
Converts a query to excel-ready format.
QueryGetCellByKey
Provides direct access to query cells by knowing a key field value within the same row.
QueryReverse
Reverse the order of a query.
QueryRowFromKey
Returns the first query row number that contains the specified key value.
QuerySetCellByKey
Allows changing of a query cell by knowing a key field value within the same row.
QueryToCsv
Transform a query result into a csv formatted variable.
QueryToSelectOptions
Creates a list of select-field option tags from the provided query.
QueryToXML
Generates an XMLDoc object from a basic CF Query. CF Version: ColdFusion MX
REEscape
Escapes all regular expression "special characters" in a string with "\".
ReplaceAt
Replaces oldSubString with newSubString from a specified starting position.
ReplaceAtNoCase
Replaces oldSubString with newSubString from a specified starting position while ignoring case.
REReplaceAt
Replaces a regular expression with newSubString from a specified starting position.
REReplaceAtNoCase
Replaces a regular expression with newSubString from a specified starting position while ignoring case.
RoundUpDown
Rounds a number up or down to the nearest specified multiple.
ShortDateMask
Generates a mask for a short date based on the locale.
StructOfStructuresToQuery
Converts a structure of structures to a CF Query.
StructRenameKey
Renames a specified key in the specified structure.
StructToXML
Converts a simple structure to a valid XML document.
XMLSafe
Extends XMLFormat to include stripping non-printable characters.
Array
This functions helps to quickly build arrays, both simple and complex.
ConvertEntity
Will convert Extended Characters to HTML Entities or HTML Entities to Extended Characters.
ConvertLegalHours
Function that returns legal billing time from standard time format.
GetFederalFiscalYear
Returns the Federal Fiscal Year for a given date.
IsManipulated
Checks if the URL (maybe a key) was manipulated or if the form was copied and changed.
IsSQLInject
Tests a string, one-dimensional array, or simple struct for possible SQL injection.
List2URLToken
Converts a list into a QueryString. Allows an "Exclude List" as well.
ListSortByLen
Sorts a list by the length of its elements.
PercentageChange
Check the percentage change between 2 numbers.
QueryGetSQL
Returns the SQL statement used to generate the specified query. CF Version: ColdFusion MX
RedirectTo
Works like cflocation.
StripAllBut
Strips all characters from a string except the ones that you want to keep.
Struct
This functions helps to quickly build structures, both simple and complex. CF Version: ColdFusion MX
SubStr
Returns the substring of a string. It mimics the behaviour of the homonymous PHP function so it permits negative indexes too.
SwatchIT
Returns the current Internet time.
ToggleValue
Toggles a value (ie: "stop"/"start") between two options.
TranslateMacromediaResourceFeed
Function to translate Macromedia's XML Resource Feed into ColdFusion variables.
TrimStruct
Trims spaces from all keys in a structure.
VerifyDSN
Verifies a DSN is working. CF Version: ColdFusion MX
ListRandomElements
Returns specified number of random list elements without repeats.
QueryRandomRows
Returns specified number of random records.
Split
Splits a string according to a string.
TrimStruct
Trims spaces from all keys in a structure.

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