K
Kelvin Moss
Hi all,
I am trying to search within wide strings (unicode characters) using
wcsstr (on Unix). My problem is that my src or dest strings may or may
not be wide strings. The code I have written seems to fail if I apply
mbstowcs to a wide string. It works correctly if both strings are non
wide or if I don't apply mbstows on a wide string.
So my questions are
1) What's the behavior of applying mbstows on a wide sring. I was
expecting it would have left it unaffected.
2) Is there am api to find if a given string is a unicode string and
doesn't require mbstows?
I haven't worked on wide strings so please correct.
Thanks ..
I am trying to search within wide strings (unicode characters) using
wcsstr (on Unix). My problem is that my src or dest strings may or may
not be wide strings. The code I have written seems to fail if I apply
mbstowcs to a wide string. It works correctly if both strings are non
wide or if I don't apply mbstows on a wide string.
So my questions are
1) What's the behavior of applying mbstows on a wide sring. I was
expecting it would have left it unaffected.
2) Is there am api to find if a given string is a unicode string and
doesn't require mbstows?
I haven't worked on wide strings so please correct.
Thanks ..