Add parser functions #timef and #timefl, giving access to the standard
date/time formats of any language.
StubObject::unstub() is no longer required since the user language is
unstubbed in ParserOptions::__construct().
Bug: T223772
Change-Id: If158f45aad67ff017f9cd15889915b226e03f50c
These are edge-cases we should make sure are covered so we don't
accidentally change how they behave.
Change-Id: Iddd08a7e752ad1fe813ed42b665e4f656c9f516c
It's impossible that explode() returns an empty array. This is dead
code.
Also add tests for the previously untested #titleparts function to
make sure this patch doesn't change any behavior. Including weird
usages with negative numbers.
Change-Id: Ib0d2503fdb0900bf6db3ebbc26d2ff648dbfc86d
The mb_strpos() function throws E_WARNING if the offset is longer
than the length of the string.
Bug: T209600
Change-Id: Ib4296ba136eaf5c8461681e9d5f108118b2494f4