CFLib.org – Common Function Library Project

parseCMSRevision(cmsRevision)

Last updated March 1, 2006

author

Peter J. Farrell

Version: 1 | Requires: CF5 | Library: StrLib

Description:
Parses a CMS (SNV or CVS) revision string into a usable variable. Accepts CVS $Revsion: $ or SVN $LastChangedRevision: $.

Return Values:
Returns a number.

Example:

<cfoutput>
CVS: #parseCMSRevision("$Revision: 1.3 $")#
SVN: #parseCMSRevision("$LastChangedRevision: 13 $")#
</cfoutput>

Parameters:

Name Description Required
cmsRevision Version string. Yes

Full UDF Source:

/**
 * Parses a CMS (SNV or CVS) revision string into a usable variable.
 * 
 * @param cmsRevision 	 Version string. (Required)
 * @return Returns a number. 
 * @author Peter J. Farrell (pjf@maestropublishing.com) 
 * @version 1, March 1, 2006 
 */
function parseCMSRevision(cmsRevision) {
	return listGetAt(arguments.cmsRevision, 2, " ");
}
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