[Libreoffice] [PATCH] Add numbering type in persian word.
Stephan Bergmann
stephan.bergmann.secondary at googlemail.com
Sun Aug 28 04:27:42 PDT 2011
On Aug 27, 2011, at 1:40 AM, Mohammad Elahi wrote:
> Numbering in localized persian word is useful in some areas, at least
> for me it is necessary. Since it is not trivial a function and table
> is needed.
> <0001-Add-numbering-type-in-persian-word-libs-gui.patch><0001-Add-numbering-type-in-persian-word-ure.patch>_______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
static sal_Unicode *table_PersianWord_decade1[]={
(sal_Unicode[]){0}, // 0
(sal_Unicode[]){0x06cc, 0x06a9, 0}, // 1
…
};
is not valid C++03 (and neither is Eike's version using the ArrUnicode typedef). To be standards conform (and hence maximally portable) would require the more verbose
static sal_Unicode table_PersianWord_decade1_0[] = { 0 };
static sal_Unicode table_PersianWord_decade1_1[] = { 0x06cc, 0x06a9, 0 };
…
static sal_Unicode * table_PersianWord_decade1[] = {
table_PersianWord_decade1_0,
table_PersianWord_decade1_1,
…
};
-Stephan
More information about the LibreOffice
mailing list