Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Comparing UNICODE strings

0 views
Skip to first unread message

matjam

unread,
Oct 11, 2007, 6:02:08 PM10/11/07
to
I am trying to sort a list of files into alphabetical order but am not
gettting the desired effect. Take the following files for example:

a.txt
b.txt
y.txt
ñ.txt

Window explorer lists these files in the following order:

a.txt
b.txt
ñ.txt
y.txt

Using wcscmp I get the following order:

a.txt
b.txt
y.txt
ñ.txt

What function can I use to get the order that Windows explorer gets? I
cannot seem to find a function that does that. I've tried wcstoll but
this returns the same order as wcscmp.

Any help is much appreciated!!!

Michael S. Kaplan [MSFT]

unread,
Oct 11, 2007, 10:32:56 PM10/11/07
to
CompareString.

But you should really try a different newsgroup, this one is no longer
supported (and it is the wrong one for the question which has nothing to do
with localization; try microsoft.public.win32.programmer.international).


--

MichKa [Microsoft]
Fundamentals Technical Lead
Windows International
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.


"matjam" <matt....@runbox.com> wrote in message
news:1192140128....@v3g2000hsg.googlegroups.com...

0 new messages