CommerceGuys\Intl\Formatter\NumberFormatter::replaceDigits PHP Method

replaceDigits() protected method

Replaces digits with their localized equivalents.
protected replaceDigits ( string $value ) : string
$value string The value being formatted.
return string
    protected function replaceDigits($value)
    {
        $numberingSystem = $this->numberFormat->getNumberingSystem();
        if (isset($this->digits[$numberingSystem])) {
            $value = strtr($value, $this->digits[$numberingSystem]);
        }
        return $value;
    }