Ejemplo n.º 1
0
 private function parseUnresolved0($text, ParsePosition $position)
 {
     $context = new DateTimeParseContext($this);
     $pos = $position->getIndex();
     $pos = $this->printerParser->parse($context, $text, $pos);
     if ($pos < 0) {
         $position->setErrorIndex(~$pos);
         // index not updated from input
         return null;
     }
     $position->setIndex($pos);
     // errorIndex not updated from input
     return $context;
 }