public function formatNumberWithCustomPattern($number, $format, Locale $locale)
    {
        return $this->doFormattingWithParsedFormat($number, $this->numbersReader->parseCustomFormat($format), $this->numbersReader->getLocalizedSymbolsForLocale($locale));
    }
public function formatNumberWithCustomPattern($number, $format, Locale $locale)
    {
        return $this->doFormattingWithParsedFormat($number, $this->numbersReader->parseCustomFormat($format), $this->numbersReader->getLocalizedSymbolsForLocale($locale));
    }
public function formatNumberWithCustomPattern ( $ number , $ format , Locale $ locale ) { return $ this -> doFormattingWithParsedFormat ( $ number , $ this -> numbersReader -> parseCustomFormat ( $ format ) , $ this -> numbersReader -> getLocalizedSymbolsForLocale ( $ locale ) ) ; }
Returns number formatted by custom format, string provided in parameter.

Format must obey syntax defined in CLDR specification, excluding
unimplemented features (see documentation for this class).

Format is remembered in this classes cache and won't be parsed again for
some time.

@param mixed $number Float or int, can be negative, can be NaN or infinite
@param string $format Format string
@param Locale $locale A locale used for finding symbols array
@return string Formatted number. Will return string-casted version of $number if pattern is not valid / supported
@api
Returns number formatted by custom format string provided in parameter .