module CLDR::Plurals

Defined in:

cldr/logic/number_properties.cr

Class Method Summary

Class Method Detail

def self.compute_number_properties(source) #

Computes and returns all the CLDR properties regarding a number


[View source]
def self.get_f(source : Number) : Int #

Get CLDR plural operand f, visible fraction digits in n, with trailing zeros.


[View source]
def self.get_f(source : String) : Int #

Same as .get_f(source : Number) but for String


[View source]
def self.get_i(source : Number) : Int #

Get CLDR plural operand i, integer digits of n.


[View source]
def self.get_i(source : String) : Int #

Same as .get_i(source : Number) but for String


[View source]
def self.get_n(source : Number) : Number #

Get CLDR plural operand n, absolute value of the source number.


[View source]
def self.get_n(source : String) : Number #

Same as .get_n(source : Number) but for String


[View source]
def self.get_t(source : Number) : Int #

Get CLDR plural operand t, visible fraction digits in n, without trailing zeros.


[View source]
def self.get_t(source : String) : Int #

Same as .get_t(source : Number) but for String


[View source]
def self.get_v(source : Number) : Int #

Get CLDR plural operand v, number of visible fraction digits in n, with trailing zeros.


[View source]
def self.get_v(source : String) : Int #

Same as .get_v(source : Number) but for String


[View source]
def self.get_w(source : Number) : Int #

Get CLDR plural operand w, number of visible fraction digits in n, without trailing zeros.


[View source]
def self.get_w(source : String) : Int #

Same as .get_w(source : Number) but for String


[View source]