tislower2.pp 668 B

1234567891011121314151617181920212223242526272829303132
  1. program tislower2;
  2. {$ifndef FPC}
  3. {$APPTYPE CONSOLE}
  4. {$endif}
  5. uses
  6. SysUtils,
  7. character;
  8. {$ifndef FPC}
  9. type UnicodeChar = WideChar;
  10. {$endif}
  11. procedure DoError(ACode : Integer);
  12. begin
  13. WriteLn('Error #',ACode);
  14. Halt(Acode);
  15. end;
  16. var
  17. s : UnicodeString;
  18. begin
  19. s := UnicodeChar($D835) + UnicodeChar($DFCB); //1D7CB;MATHEMATICAL BOLD SMALL DIGAMMA;Ll;0;L;<font> 03DD;;;;N;;;;;
  20. if not TCharacter.IsLower(s,1) then
  21. DoError(1);
  22. s := UnicodeChar($D835) + UnicodeChar($DFED); //1D7ED;MATHEMATICAL SANS-SERIF BOLD DIGIT ONE;Nd;0;EN;<font> 0031;1;1;1;N;;;;;
  23. if TCharacter.IsLower(s,1) then
  24. DoError(2);
  25. WriteLn('ok');
  26. end.