diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-18 14:43:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-18 14:43:01 +0100 |
commit | 876c035dc448314eb6a44cf4692b90188478f797 (patch) | |
tree | f668cbb5ec6b9fa056860701740a30a5ade34811 /i18npool | |
parent | 207a2c3e2a44cb6b6c338a983dd2a72469f694ac (diff) |
add comment on special case for the 15 and 16 numbers
Change-Id: Iecc46c30b9d4a91339099f5b0b6d8a9ca715b13b
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/nativenumber/nativenumbersupplier.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx index 4418fc287c45..492b8da5e421 100644 --- a/i18npool/source/nativenumber/nativenumbersupplier.cxx +++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx @@ -862,6 +862,8 @@ void makeHebrewNumber(sal_Int64 value, OUStringBuffer& output, bool isLast, bool for (sal_Int32 j = 0; num > 0 && j < sal_Int32(SAL_N_ELEMENTS(HebrewNumberCharArray)); j++) { if (num - HebrewNumberCharArray[j].value >= 0) { nbOfChar++; + // https://en.wikipedia.org/wiki/Hebrew_numerals#Key_exceptions + // By convention, the numbers 15 and 16 are represented as 9 + 6 and 9 + 7 if (num == 15 || num == 16) // substitution for 15 and 16 j++; num = sal::static_int_cast<sal_Int16>( num - HebrewNumberCharArray[j].value ); |