My colleague who speaks more C than me came up with the code below which works fine for us. Will the memory allocated for lexeme be freed
Nice, except self-defined utf8 properties. I think it will be much better to usepg_mblen(char*). In this case your dictionary will work with any supported by pgsql encodings.
by the caller?
Yes, of course. -- Teodor Sigaev E-mail: teodor@xxxxxxxxx WWW: http://www.sigaev.ru/