[threeten-dev] Lenient parsing of 2 and 4 digits values (years)
Stephen Colebourne
scolebourne at joda.org
Sun Apr 21 03:53:58 PDT 2013
On 20 April 2013 21:29, roger riggs <roger.riggs at oracle.com> wrote:
> I'm not sure I understand all of the logic/code around parseAdjacent mode.
> It appears only to be active after a non-fixed width parser.
Handling the case of a series of fixed width parses is easy and
requires no special logic. Each only consumes the amount available.
Handling a fixed width after a variable width requires special
handling, otherwise the variable width one gobbles everything.
> If the current state of strict vs lenient was visible while building then
> ReducedPrinterParser could be sensitive to that and be created
> as fixed or variable width as appropriate.
That may be a possible solution.
Stephen
More information about the threeten-dev
mailing list