- Add Horde_Date_Parser_Result for holding complex results from
authorChuck Hagenbuch <chuck@horde.org>
Mon, 29 Jun 2009 02:48:17 +0000 (22:48 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 29 Jun 2009 02:48:17 +0000 (22:48 -0400)
commitc240cdc93602ddc11e210fddbf4d00f19f33c965
treeef2599d9fdfd4c57010e8c6b6e4fed8f11009adf
parent3efd446d5615125b005c54f532bd7450adc11aa3
- Add Horde_Date_Parser_Result for holding complex results from
  Horde_Date_Parser#parse()

- Replace the 'guess' option with a generic 'return' option that allows you to
  pick a Horde_Date, Horde_Date_Span, or Horde_Date_Parser_Result

- Move the guess() function to the Horde_Date_Parser_Result object (maybe it
  should actually be on the span itself?)

- Horde_Date_Parser_Result can return the tagged or untagged text from the
  original string.
framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php
framework/Date_Parser/lib/Horde/Date/Parser/Result.php [new file with mode: 0644]
framework/Date_Parser/package.xml
framework/Date_Parser/test/Horde/Date/Parser/Locale/BaseTest.php
framework/Date_Parser/test/Horde/Date/Parser/ParserTest.php
framework/Date_Parser/test/Horde/Date/Parser/ResultTest.php [new file with mode: 0644]