ICanBoogie/CLDR master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • CLDR
      • Plurals
      • Units

Classes

  • Operands
  • Relation
  • Rule
  • Samples

Class Relation

Representation of a plural rule relation.

Final
Namespace: ICanBoogie\CLDR\Plurals
See: http://unicode.org/reports/tr35/tr35-numbers.html#Relations
Located at Plurals/Relation.php

Methods summary

public static ICanBoogie\CLDR\Plurals\Relation
# from( string $relation )

Parameters

$relation

Returns

ICanBoogie\CLDR\Plurals\Relation
public number
# resolve_x( ICanBoogie\CLDR\Plurals\Operands $operands )

Resolve x.

Resolve x.

Parameters

$operands

Returns

number
public boolean
# evaluate( ICanBoogie\CLDR\Plurals\Operands $operands )

Parameters

$operands

Returns

boolean
true if the operands satisfy the rule, false otherwise.

Constants summary

string RANGE_SEPARATOR
# '..'
string MODULUS_SIGN
# '%'
ICanBoogie/CLDR master API documentation generated by ApiGen