Re: [Rd] wchar and wstring. (followup question)

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, James Bullard wrote: > Thanks for all of the help with my previous posts. This question might > expose much of my ignorance when it comes to R's memory managment and > the responsibilities of the programmer, but I thought I had better ask > rather than continue in my ignorance

Re: [Rd] wchar and wstring. (followup question)

2005-08-29 Thread James Bullard
Thanks for all of the help with my previous posts. This question might expose much of my ignorance when it comes to R's memory managment and the responsibilities of the programmer, but I thought I had better ask rather than continue in my ignorance. I use the following code to create a multi-byte

Re: [Rd] wchar and wstring.

2005-08-27 Thread Prof Brian Ripley
On Fri, 26 Aug 2005, James Bullard wrote: > Hello all, I am writing an R interface to some C++ files which make use > of std::wstring classes for internationalization. Previously (when I > wanted to make R strings from C++ std::strings), I would do something > like this to construct a string in R

[Rd] wchar and wstring.

2005-08-26 Thread James Bullard
Hello all, I am writing an R interface to some C++ files which make use of std::wstring classes for internationalization. Previously (when I wanted to make R strings from C++ std::strings), I would do something like this to construct a string in R from the results of the parse. SET_VECTOR_ELT(vals