[Fribidi-discuss] What length should I expect in fribidi functions?
Dov Grobgeld
dov at imagic.weizmann.ac.il
Wed Aug 7 07:01:02 EST 2002
On Tue, Aug 06, 2002 at 10:31:49AM +0430, Behdad Esfahbod wrote:
> On Mon, 5 Aug 2002, Yedidyah Bar-David wrote:
>
> The charset-to-unicode converts strings to UTF-32, not UTF-8, it
^
|
You meant UCS-32
Regards,
Dov
> means that the output needs exactly sizeof(FriBidiChar) times
> longer memory, which is 4 times by default. to convert a buffer
> char buf[1000], you need to define a FriBidiChar out[1000]
> buffer.
>
> > In utf-8(7), it says:
> > * UTF-8 encoded UCS characters may be up to six bytes
> > long, however the Unicode standard specifies no charac
> > ters above 0x10ffff, so Unicode characters can only be
> > up to four bytes long in UTF-8.
> >
> > Thanks,
> >
> > Didi
>
> behdad
> --
> Behdad Esfahbod 15 Mordad 1381, 2002 Aug 6
> http://behdad.org/ [Finger for Geek Code]
>
> #define is_persian_leap(y) ((((y)-474)%2820+2820)%2820*31%128<31)
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Fribidi-discuss mailing list
> Fribidi-discuss at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fribidi-discuss
More information about the FriBidi
mailing list