fork download
  1. using static System.Globalization.CharUnicodeInfo;
  2. using System.Globalization;
  3.  
  4. static class Validator {
  5. static void Main() {}
  6. static bool TestCategory(UnicodeCategory cat, char cp) => GetUnicodeCategory(cp) == cat;
  7. }
  8.  
  9. //https://pt.stackoverflow.com/q/262203/101
Success #stdin #stdout 0.01s 13848KB
stdin
Standard input is empty
stdout
Standard output is empty