-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathStringCasing.cs
More file actions
43 lines (42 loc) · 1.79 KB
/
StringCasing.cs
File metadata and controls
43 lines (42 loc) · 1.79 KB
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
namespace BytecodeApi;
/// <summary>
/// Specifies the character casing of a <see cref="string" />.
/// </summary>
public enum StringCasing
{
/// <summary>
/// The <see cref="string" /> is lowercase.
/// <para>Example: hello world</para>
/// </summary>
Lower,
/// <summary>
/// The <see cref="string" /> is uppercase.
/// <para>Example: HELLO WORLD</para>
/// </summary>
Upper,
/// <summary>
/// The <see cref="string" /> is camel case, where the first character and each character following a whitespace or punctuation mark is uppercase. All other characters are lowercase.
/// <para>Example: Hello World</para>
/// </summary>
CamelCase,
/// <summary>
/// The <see cref="string" /> is snake case. All characters are lowercase. Punctuation marks are removed and sequences of one or multiple whitespace characters are replaced by a single underscore.
/// <para>Example: hello_world</para>
/// </summary>
LowerSnakeCase,
/// <summary>
/// The <see cref="string" /> is snake case. All characters are uppercase. Punctuation marks are removed and sequences of one or multiple whitespace characters are replaced by a single underscore.
/// <para>Example: HELLO_WORLD</para>
/// </summary>
UpperSnakeCase,
/// <summary>
/// The <see cref="string" /> is kebab case. All characters are lowercase. Punctuation marks are removed and sequences of one or multiple whitespace characters are replaced by a single dash.
/// <para>Example: hello-world</para>
/// </summary>
LowerKebabCase,
/// <summary>
/// The <see cref="string" /> is kebab case. All characters are uppercase. Punctuation marks are removed and sequences of one or multiple whitespace characters are replaced by a single dash.
/// <para>Example: HELLO-WORLD</para>
/// </summary>
UpperKebabCase
}