Hi,
I have an external function which passes 3 arguments (line
,pattern,vecor_of_matched_subexpression).
When this 'line' contains unicode character ,the transcode method is
throwing an exception 202(transcoding error).
The code looks like:
CharVectorType inputVector;
(args[0]->str()).transcode(inputVector);
//transcode appends one terminating NULL('\0') char which
// is not part of the original string
inputString.assign(inputVector.begin(),inputVector.end()-1);
I have removed the try..catch block here.
How can I convert args[0]->str() to std::string ?
(i need this string to be passed to boost::regex_search method to search for
pattern)
Thanks again in advance.