It's my first post and therefore I want to thank everybody who was ever part of the FPC & LAZARUS community.
It's really already one of the best RAD- and Development-Tools I'am aware of.
But here is my question:
I was a little playing around with UTF8 and wanted to find out more about the different TUnicodeCategory types.
However, I have got some strange results.
E.g. for '+' and '=' I am receiving 'Math Symbol' what I have expected but for '*' and '/' I get 'Other Punctuation.
I would have expected them to be in the category 'Math Symbol' as well.
Is there somewhere a good documentation and explanation why those UTF8 codes are categorized in that way?
Here is my code:
Cat:=GetUnicodeCategory(UTF8ToUTF16(UTF8Key),1);
case Cat of
TUnicodeCategory.ucMathSymbol:Ans:='Math Symbol';
TUnicodeCategory.ucUppercaseLetter:Ans:='Uppercase';
TUnicodeCategory.ucLowercaseLetter:Ans:='Lowercase';
TUnicodeCategory.ucOtherLetter:Ans:='Letter';
TUnicodeCategory.ucDecimalNumber:Ans:='Decimal Number';
TUnicodeCategory.ucOtherNumber:Ans:='Other Number';
TUnicodeCategory.ucCurrencySymbol:Ans:='Currency';
TUnicodeCategory.ucOpenPunctuation:Ans:='Open Punctuation';
TUnicodeCategory.ucClosePunctuation:Ans:='Close Punctuation';
TUnicodeCategory.ucOtherPunctuation:Ans:='Other Punctuation';
TUnicodeCategory.ucOtherSymbol:Ans:='Other Symbol';
else
Ans:='Other Category (character.pas > TUnicodeCategory) ';
end;