[Fribidi-discuss] Fribidi 0.9.1 released

Omer Zak omerz at actcom.co.il
Sat Dec 15 00:13:02 EST 2001


On Sat, 15 Dec 2001, Behdad Esfahbod wrote:

> In a few days, I'm now extending the api in several ways, good idea to
> add this one too.

If the API is improved, I suggest that the API of the proceduers which
convert into and from UTF is improved as well.
I designed the original API, to allow conversions to stop when memory for
the target string runs out (in those conversions, it is not known in
advance how long will the target string be) and resume from that point on.

However, the API involves calling procedures with long argument lists, and
I am not happy with this approach.

I suggest to modify the API to use object-oriented approach (of course,
using C):
1. Define a struct, which describes a conversion - with pointers to source
   and destination strings, and length fields.
2. Implement a function, which initializes the struct.
3. Change the long argument lists in the conversion procedures to a
   pointer to the struct.
4. Each time a conversion procedure is called, it modifies the object to
   describe the state of the conversion in progress.

                                             --- Omer
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html





More information about the FriBidi mailing list