Re: CORBA_wstring?



I am obviously not getting enough sleep... The current mapping is:

typedef guint16 gunichar2;
typedef gunichar2 CORBA_wchar;
typedef CORBA_wchar *CORBA_wstring;

and I would like it to be:

typedef wchar_t CORBA_wchar;
typedef CORBA_wchar *CORBA_wstring;

sorry,
  jules

On Fri, 2005-01-07 at 12:39 +0100, Jules Colding wrote:
> Hi,
> 
> This just looks like a stupid question, but how am I supposed to printf
> a CORBA_wstring? The mapping is:
> 
> typedef guint16 gunichar2;
> typedef CORBA_wchar gunichar2;
> typedef CORBA_wstring *CORBA_wchar;
> 
> Any deep reason why we didn't do:
> 
> typedef CORBA_wchar wchar_t;
> typedef CORBA_wstring *CORBA_wchar;
> 
> ?? 
> 
> I can always do printf("%x", *the_wstring) in a for() loop over all wide
> characters in the string but it would be so much more elegant to do
> printf("%ls", the_wstring).
> 
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]