How to get visual string from logical string?
now working with bidirectional strings. For example:
std::wstring s = L"C:\\";
s.push_back(0x202e);
s.append(L"123456");
Is representing as C:\654321. I need to get a string which represents a
visual string expression and do not have any marks.
I have found this and this. However I do not understand how to use them. I
do not understand how to create structure of type UBiDi. If I use it like
this: UBiDi ubidi I get compilation error, error C2079: 'bidi' uses
undefined struct 'UBiDi'; if use it like this: UBiDi* bidi;, get only
warning which is warning C4101: 'bidi' : unreferenced local variable.
There is no compilation error, however I do not know how to initialize
this structure and as a result if I use this uninitialized program
crashes.
I would like to ask how to initialize this struct. Also there is second
question, is there any other way to convert logical string into visual, if
yes, I appreciate that info.
No comments:
Post a Comment