Source

ISO 8601 parser/unparser / Makefile

Author Commit Message Labels Comments Date
Peter Hosey
Added a program that times the ISO 8601 date formatter against C standard library date parsing and unparsing. Inspired by [1]. [1]: http://samsoff.es/posts/how-to-drastically-improve-your-app-with-an-afternoon-and-instruments
Peter Hosey
Checking in a new test program.
Peter Hosey
Changed compiler to Clang.
Peter Hosey
More warnings.
Peter Hosey
Replacing -Wall with the Hoseyification suite of warning flags.
Peter Hosey
Added targets to the Makefile to run the Clang Static Analyzer on the date formatter.
Peter Hosey
Massive rewrite. The parser and unparser are now together in a single NSFormatter subclass, and are now based on NSCalendar and NSDateComponents instead of NSCalendarDate. The parser remains more or less unchanged. Two-thirds of the unparser is now based on NSDateFormatter, which handles that portion of ISO 8601 string-formatting more or less for free; the part not handled for free is week dates (because NSCalendar has a different idea of when the week starts), and that unparser also remains more or less unchanged.
Peter Hosey
Changed how we test the unparser results: Consider the expected results to be the “old” version, and refer to them in the test_files subdirectory, where they reside.
boredzo
Completed the burnination of the old Parser folder. This is a combined parser/unparser project now.