Well, you could if there were any docs... the ChangeLog is really serving as my Doc now, but someone pointed out to me on another blog that my list functions don't behave *exactly* like the ColdFusion ones. Specifically, I don't ignore empty list items, and I allow for multi-character delimiters.

Here's a list of the functions by category that I've added to the library (32 in total!):

Decision (7)
--------
IsArray(value)
IsBoolean(value)
IsDate(date)
IsDefined(value)
IsLeapYear(year)
IsNumeric(string)
IsStruct(struct)

Date/Time (10)
---------
CreateDate(year, month, day)
CreateDateTime(year, month, day, hours, minutes, seconds)
CreateTime(hours, minutes, seconds)
CreateODBCDate(DateObject)
CreateODBCDateTime(DateObject)
CreateODBCTime(DateObject)
DateDiff(datepart, date1, date2)
DateFormat(dateObj, mask)
DatePart(DateObject, DatePart)
TimeFormat(dateObj, mask)

List (12)
---------
ListChangeDelims(list, new_delimiter [, current_delimiter])
ListContains(list, substring [, delimiter])
ListContainsNoCase(list, substring [, delimiter])
ListFirst(list, [, delimiter ])
ListInsertAt(list, position, value [, delimiter ])
ListLast(list, [, delimiter ])
ListPrepend(list, value, [, delimiter])
ListRest(list [, delimiter])
ListSetAt(list, position, value [, delimiter ])
ListSort(list, sort_type [, sort_order] [, delimiter ])
ListValueCount(list, value [, delimiter ])
ListValueCountNoCase(list, value [, delimiter ])

Structure(3)
------------
StructKeyArray (struct)
StructKeyExists (struct, key)
StructKeyList (struct [, delimiter])

I also have plans for six more array functions, but haven't written them just yet.

In addition to added functionality, I've fixed numerous bugs that, as far as I can tell, LeftCorner.js still hasn't addressed despite my informing Randy Anderson of them.

Specifically, I've fixed bugs in his _CommaForThousands function which apparently only worked for numbers in the thousands. Pass six or more digits to it and it broke. Since changing _CommaForThousands, I've had to change the way that DollarFormat() and DecimalFormat() worked. DecimalFormat used to return numbers like 12..34 under the right circumstances. This might have been due to the fixes I made to _CommaForThousands, but I'm not sure.

There was also a problem with his ListAppend() function which caused it to return lists like, ",item1,item2,item3," instead of "item1,item2,item3" (which it now does).

There were also errors with his list functions having to do with passing a list of numbers. It's been a while for that one, so I don't recall what the exact error was, but I just changed each list function such that one of the first things it does is convert the list into a string. Then there was a problem with the three trim functions, all of them would throw an error if they were passed an empty string or an undefined variable. This is now fixed as well.

I probably ought to write some proper docs, shouldn't I? Anyway, I hope this answers some of your questions, and I'd be happy to entertain more questions, criticism, or suggestions.

Cheers,
Chris


Dave Shuck wrote:
Oh I just meant a high-level summary in this reply... like what functions are available in one and not the other, and maybe any usuage differences other than the obvious prefix difference. I suppose I *could* just go read the docs, huh. :)

On 5/15/07, *Christopher Jordan* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Sure Dave. Where would you like me to do it?

    Dave Shuck wrote:
    Chris, could you point out some of the differences between that
    one and the LeftCorner one that I blogged about here:
    
http://daveshuck.instantspot.com/blog/index.cfm/2007/4/26/Javascript-library-of-ColdFusion-functions
    
<http://daveshuck.instantspot.com/blog/index.cfm/2007/4/26/Javascript-library-of-ColdFusion-functions>


    On 5/15/07, *Christopher Jordan* < [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Hi folks,
        Just dropping a line to tell y'all there's a non-jQuery
        version of CFJS. You can check out the details here
        <http://cjordan.us/index.cfm/2007/5/15/CFJS--The-non-jQuery-version>.

        Cheers,
        Chris

-- http://cjordan.us


        _______________________________________________
        Reply to DFWCFUG:
         [email protected] <mailto:[email protected]>
        Subscribe/Unsubscribe:
         http://lists1.safesecureweb.com/mailman/listinfo/list
        List Archives:
            http://www.mail-archive.com/list%40list.dfwcfug.org/
          http://www.mail-archive.com/list%40dfwcfug.org/
        DFWCFUG Sponsors:
         www.instantspot.com/ <http://www.instantspot.com/>
          www.teksystems.com/ <http://www.teksystems.com/>




-- ~Dave Shuck
    [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    http://daveshuck.instantspot.com <http://daveshuck.instantspot.com>
    ------------------------------------------------------------------------

    _______________________________________________
Reply to DFWCFUG: [email protected] <mailto:[email protected]> Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.instantspot.com/ <http://www.instantspot.com/>
      www.teksystems.com/ <http://www.teksystems.com/>

-- http://cjordan.us


    _______________________________________________
    Reply to DFWCFUG:
     [email protected] <mailto:[email protected]>
    Subscribe/Unsubscribe:
     http://lists1.safesecureweb.com/mailman/listinfo/list
    List Archives:
        http://www.mail-archive.com/list%40list.dfwcfug.org/
      http://www.mail-archive.com/list%40dfwcfug.org/
    DFWCFUG Sponsors:
     www.instantspot.com/ <http://www.instantspot.com/>
      www.teksystems.com/ <http://www.teksystems.com/>




--
~Dave Shuck
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://daveshuck.instantspot.com <http://daveshuck.instantspot.com>
------------------------------------------------------------------------

_______________________________________________
Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.instantspot.com/
  www.teksystems.com/

--
http://cjordan.us

_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.instantspot.com/
  www.teksystems.com/

Reply via email to