There are these field types:
StringUTF8Enum/StringAsciiEnum/StringRMTESEnum. Can I call getAsString() for all of them if I don't care UNICODE issue?
There are these field types:
StringUTF8Enum/StringAsciiEnum/StringRMTESEnum. Can I call getAsString() for all of them if I don't care UNICODE issue?
Hello @ming.cheng
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.
Thanks,
AHS
Hi,
Please be informed that a reply has been verified as correct in answering the question, and marked as such.
Thanks,
AHS
Thanks for reaching out to us.
For a general usage, it is better to refer to the code used in the example.
case DataBuffer::StringAsciiEnum: case DataBuffer::StringUTF8Enum: case DataBuffer::StringRMTESEnum: case DataBuffer::XMLEnum: { const Buffer& buf = dataBuffer.getBuffer(); sData = new char[buf.size() + 1]; strncpy( sData, (char*)buf.c_buf(), buf.size() ); sData[ buf.size() ] = '\0'; write( "\"%s\"", sData ); delete[] sData; }
I hope that this information is of help.
Yes, it is a user-defined function in the RFA examples.
void StandardOut::write(const char* input, ...) { va_list arglist; assert( input != NULL ); va_start( arglist, input ); vprintf( input, arglist );