Kernel.IsAlpha issue
Posted: Sat Feb 07, 2015 3:03 pm
Kernel.IsAlpha do not consider hiragana and katakana writing system of Japanese language as alpha character. Japanese language use 3 writing systems (hiragana, katakana and Chinese characters) simultaneously.
My suggestion of fixing issue :
Unfortunately I couldn't find any issue tracking system with open access so I report issue here.
Some details of the issue can be found here: http://www.siao2.com/2005/09/12/463991.aspx.
My suggestion of fixing issue :
Code: Select all
PROCEDURE IsAlpha* (ch: CHAR): BOOLEAN;
VAR type: SHORTINT; res: INTEGER;
BEGIN
res := WinApi.GetStringTypeW(WinApi.CT_CTYPE1, S.VAL(WinApi.PtrWSTR, S.ADR(ch)), 1, type);
RETURN BITS(WinApi.C1_ALPHA) * BITS(type) # {}
END IsAlpha;
Some details of the issue can be found here: http://www.siao2.com/2005/09/12/463991.aspx.