You are here

private static function DatexIntlCalendar::format2pattern in Datex 8

3 calls to DatexIntlCalendar::format2pattern()
DatexIntlCalendar::format in src/Datex/DatexIntlCalendar.php
DatexIntlCalendar::parse in src/Datex/DatexIntlCalendar.php
DatexIntlCalendar::toGregorian in src/Datex/DatexIntlCalendar.php

File

src/Datex/DatexIntlCalendar.php, line 63

Class

DatexIntlCalendar

Namespace

Drupal\datex\Datex

Code

private static function format2pattern($format) {
  $rep = preg_replace(self::$remove_pattern, '', $format);
  $pat = strtr($rep, self::$php2intl_format_map);
  return $pat;
}