The following function was written for java and has been adapted for C.
bool isFullwidthKatakana(WideChar C)
{
return(('\u30a0'<=C)&&(C<='\u30ff'));
}
The problem is that my framework ("CodeGear C++Builder") shows this error:
[BCC32 Warning] Unit1.cpp(101): W8114 Character represented by universal-character-name '\u30a0' cannot be represented in the current code page (1252)
and it does not return true whether the conditions are met.
For example one input is 'ア' (0x30A2).
What should I do? How can I change the code page?
Thank you to the three answers they all resolved it.
return((0x30a0<=C)&&(C<=0x30ff));
It seems the that the expression \u30a0 wasn't correct, this all were correct
return((0x30a0<=C)&&(C<=0x30ff));
return (unsigned int) C >= 0x30a0u && (unsigned int) C <= 0x30ffu;
return((L'\u30a0'<=C)&&(C<=L'\u30ff'));