Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StringNormalizationExtensions.cs
Go to the documentation of this file.
1using System.Text;
2
3namespace System;
4
6{
7 public static bool IsNormalized(this string strInput)
8 {
9 return IsNormalized(strInput, NormalizationForm.FormC);
10 }
11
12 public static bool IsNormalized(this string strInput, NormalizationForm normalizationForm)
13 {
14 if (strInput == null)
15 {
16 throw new ArgumentNullException("strInput");
17 }
18 return strInput.IsNormalized(normalizationForm);
19 }
20
21 public static string Normalize(this string strInput)
22 {
23 return Normalize(strInput, NormalizationForm.FormC);
24 }
25
26 public static string Normalize(this string strInput, NormalizationForm normalizationForm)
27 {
28 if (strInput == null)
29 {
30 throw new ArgumentNullException("strInput");
31 }
32 return strInput.Normalize(normalizationForm);
33 }
34}
static bool IsNormalized(this string strInput, NormalizationForm normalizationForm)
static bool IsNormalized(this string strInput)
static string Normalize(this string strInput, NormalizationForm normalizationForm)
static string Normalize(this string strInput)