Konrad wrote:
c = _mbctoupper(_mbsnextc(s));
/* Note that I assume that the size of the character is unchanged */
if (c > 255)
{
*s++=(c>>8);
c=c & 0xff;
}
*s++=c;
Tests might be in order... (Here's one possible interesting test case: http://blogs.msdn.com/b/michkap/archive/2009/08/11/9864576.aspx ) - Dan
Dnia piątek, 18 marca 2011, Dan Kegel napisał(a):
Konrad wrote:
c = _mbctoupper(_mbsnextc(s));
/* Note that I assume that the size of the character is unchanged
*/ + if (c > 255)
{
*s++=(c>>8);
c=c & 0xff;
}
*s++=c;
Tests might be in order... (Here's one possible interesting test case: http://blogs.msdn.com/b/michkap/archive/2009/08/11/9864576.aspx )
- Dan
Probably you have right. But if you look at code support for multibyte case change is in fact notexistent. I've only wrtite this code for my immediate need - I've only adopted current _mbsupr to have character count and error handling described in MSDN.
Sorry, but I have no resources to implement all underlying multibyte support.
PC. Please CC I'm not on the list
On Thu, Mar 17, 2011 at 11:19 PM, Konrad Rzepecki hannibal@astral.lodz.pl wrote:
Tests might be in order...
Probably you have right. But if you look at code support for multibyte case change is in fact notexistent. I've only wrtite this code for my immediate need - I've only adopted current _mbsupr to have character count and error handling described in MSDN.
Sorry, but I have no resources to implement all underlying multibyte support.
But you could do a few tests. It's ok if some of them are todo_wine. - Dan
Dnia piątek, 18 marca 2011, Dan Kegel napisał(a):
But you could do a few tests. It's ok if some of them are todo_wine.
- Dan
I've added some simple test and you have completly right to add them. The original libraries works different from what documentation says...
Fourth try was send couple minutes ago. I really hope this is last one.