aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/InvalidCharFlags.cs
blob: aa703f5d6c10bf70f84131ee97f003c6de7336ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;

namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
{
    /// <summary>
    /// Identifies prohibited character sets.
    /// </summary>
    [Flags]
    enum InvalidCharFlags : uint
    {
        /// <summary>
        /// No characters are prohibited.
        /// </summary>
        None = 0 << 1,

        /// <summary>
        /// Prohibits spaces.
        /// </summary>
        Space = 1 << 1,

        /// <summary>
        /// Prohibits the at (@) symbol.
        /// </summary>
        AtSymbol = 1 << 2,

        /// <summary>
        /// Prohibits the percent (%) symbol.
        /// </summary>
        Percent = 1 << 3,

        /// <summary>
        /// Prohibits the forward slash (/) symbol.
        /// </summary>
        ForwardSlash = 1 << 4,

        /// <summary>
        /// Prohibits the backward slash (\) symbol.
        /// </summary>
        BackSlash = 1 << 5,

        /// <summary>
        /// Prohibits numbers.
        /// </summary>
        Numbers = 1 << 6,

        /// <summary>
        /// Prohibits characters outside of those allowed in download codes.
        /// </summary>
        DownloadCode = 1 << 7,

        /// <summary>
        /// Prohibits characters outside of those allowed in Mii Nicknames.
        /// </summary>
        Username = 1 << 8,
    }
}