You are here

function IntegerFormatter::symbolIsSpecial in Currency 7.2

Checks if a symbol is a special.

Parameters

NumberPatternSymbol $symbol:

array $is: An array of self::SYMBOL_* constants, one of which the symbol should match.

Return value

boolean

1 call to IntegerFormatter::symbolIsSpecial()
IntegerFormatter::process in currency/vendor/bartfeenstra/cldr/src/BartFeenstra/CLDR/IntegerFormatter.php
Process the pattern's symbols using a number.

File

currency/vendor/bartfeenstra/cldr/src/BartFeenstra/CLDR/IntegerFormatter.php, line 305
Contains class \BartFeenstra\CLDR\IntegerFormatter.

Class

IntegerFormatter
Formats an integer according CLDR number pattern guidelines.

Namespace

BartFeenstra\CLDR

Code

function symbolIsSpecial(NumberPatternSymbol $symbol, array $is) {
  return !$symbol->escaped && in_array($symbol->symbol, $is, TRUE);
}