Functions
matchInterval
- matchInterval(num: number, interval: string): boolean
-
Parameters
-
num: number
-
interval: string
Returns boolean
Match or not.
mustacheProcessor
- mustacheProcessor(text: string, namedValues: any): string
-
Parameters
-
text: string
-
namedValues: any
Returns string
parsePluralInterval
- parsePluralInterval(phrase: string, count: number): string
-
Parameters
-
phrase: string
-
count: number
Returns string
Phrase.
pluralIntervalProcessor
- pluralIntervalProcessor(text: string, _: any, __: any, count?: number): string
-
Parameters
-
text: string
-
_: any
-
__: any
-
Optional count: number
Returns string
test a number to match mathematical interval expressions [0,2] - 0 to 2 (including, matches: 0, 1, 2) ]0,3[ - 0 to 3 (excluding, matches: 1, 2) [1] - 1 (matches: 1) [20,] - all numbers ≥20 (matches: 20, 21, 22, ...) [,20] - all numbers ≤20 (matches: 20, 21, 22, ...)