On Tue, 2012-10-30 at 08:42 +0100, Christian Costa wrote:
This is almost the same as your first try. You're testing a trivial case only - ASCII range. I feel like it should behave more like memcmp for case insensitive comparison, that's what documentation mildly suggests.
Well, It's not the same implementation. It's ordinal now. I have test for that. And how can memcmp be used for insensitive comparison?
Have a look at memicmpW.
Do you have a concrete example that does not work with this implementation
How about CompareStringOrdinal( "a\0a", 3, "a\0b", 3 )?