[Libreoffice] [PATCH] Add numbering type in persian word.

Mohammad Elahi elahimohammad at gmail.com
Sun Aug 28 05:12:15 PDT 2011


>
> 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
>
OK. But it is too verbose ;)
Any  other solution? what about the following:

 static sal_Unicode table_PersianWord_decade1[][MAX_LEN]={
   {0}, // 0
   {0x06cc, 0x06a9, 0}, // 1
...
};

Although it uses more memory, but it is less vebose.
What's your opinion?

Elahi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110828/9e0d2577/attachment.html>


More information about the LibreOffice mailing list