InvalidCharFlags.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
  3. {
  4. /// <summary>
  5. /// Identifies prohibited character sets.
  6. /// </summary>
  7. [Flags]
  8. enum InvalidCharFlags : uint
  9. {
  10. /// <summary>
  11. /// No characters are prohibited.
  12. /// </summary>
  13. None = 0 << 1,
  14. /// <summary>
  15. /// Prohibits spaces.
  16. /// </summary>
  17. Space = 1 << 1,
  18. /// <summary>
  19. /// Prohibits the at (@) symbol.
  20. /// </summary>
  21. AtSymbol = 1 << 2,
  22. /// <summary>
  23. /// Prohibits the percent (%) symbol.
  24. /// </summary>
  25. Percent = 1 << 3,
  26. /// <summary>
  27. /// Prohibits the forward slash (/) symbol.
  28. /// </summary>
  29. ForwardSlash = 1 << 4,
  30. /// <summary>
  31. /// Prohibits the backward slash (\) symbol.
  32. /// </summary>
  33. BackSlash = 1 << 5,
  34. /// <summary>
  35. /// Prohibits numbers.
  36. /// </summary>
  37. Numbers = 1 << 6,
  38. /// <summary>
  39. /// Prohibits characters outside of those allowed in download codes.
  40. /// </summary>
  41. DownloadCode = 1 << 7,
  42. /// <summary>
  43. /// Prohibits characters outside of those allowed in Mii Nicknames.
  44. /// </summary>
  45. Username = 1 << 8
  46. }
  47. }