Re: question about char/wchar/mb utils - Mailing list pgsql-hackers

From Tom Lane
Subject Re: question about char/wchar/mb utils
Date
Msg-id 7188.1078935154@sss.pgh.pa.us
Whole thread Raw
In response to question about char/wchar/mb utils  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> If not, what are the other options?

I don't think you have any: you have to use PQmblen.  Depending on wchar
facilities would be unportable even if they did everything you wanted.

It might be convenient to build an integer array of character start
offsets and then work with that as if it were a wchar array.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCHES] log_line_info
Next
From: "Merlin Moncure"
Date:
Subject: Re: optimizing impossible matches