P
Praveen
Hi,
I am working on enhancing the IBM_DB Ruby driver (database driver for
DB2 and Informix) by providing unicode support.
I tried googling with no luck to find any documents or links which
talk about the Ruby C extension API's that can be used to unleash the
unicode support of Ruby-1.9 to
1) Convert Ruby string (unicode) object received in the extension API
into wchar (like rb_str2cstr, in ruby-1.8)
2) Convert wchar* to a Ruby Object (like rb_str_new2, in ruby-1.8).
3) Convert string objects between different formats (UCS-2, UCS-4).
Could some body put light on the answers for the above queries.
Along with the above things could you also tell me if Ruby by default
is compiled to use UCS-2 or UCS-4 or other format strings and how will
I be able to tap this info, of which format is being used,
programmatically in the extension.
Thanks
Praveen
I am working on enhancing the IBM_DB Ruby driver (database driver for
DB2 and Informix) by providing unicode support.
I tried googling with no luck to find any documents or links which
talk about the Ruby C extension API's that can be used to unleash the
unicode support of Ruby-1.9 to
1) Convert Ruby string (unicode) object received in the extension API
into wchar (like rb_str2cstr, in ruby-1.8)
2) Convert wchar* to a Ruby Object (like rb_str_new2, in ruby-1.8).
3) Convert string objects between different formats (UCS-2, UCS-4).
Could some body put light on the answers for the above queries.
Along with the above things could you also tell me if Ruby by default
is compiled to use UCS-2 or UCS-4 or other format strings and how will
I be able to tap this info, of which format is being used,
programmatically in the extension.
Thanks
Praveen