Provides extension methods to work with normalized strings.
More...
|
static bool | IsNormalized (this string value) |
| Indicates whether the specified string is in Unicode normalization form C. More...
|
|
static bool | IsNormalized (this string value, NormalizationForm normalizationForm) |
| Indicates whether a string is in a specified Unicode normalization form. More...
|
|
static string | Normalize (this string value) |
| Normalizes a string to a Unicode normalization form C. More...
|
|
static string | Normalize (this string value, NormalizationForm normalizationForm) |
| Normalizes a string to the specified Unicode normalization form. More...
|
|
Provides extension methods to work with normalized strings.
Definition at line 9 of file StringNormalizationExtensions.cs.
◆ IsNormalized() [1/2]
static bool System.StringNormalizationExtensions.IsNormalized |
( |
this string |
value | ) |
|
|
static |
Indicates whether the specified string is in Unicode normalization form C.
- Parameters
-
- Returns
true
if value is in normalization form C; otherwise, false
.
- Exceptions
-
T:System.ArgumentException | value contains invalid Unicode characters. |
Definition at line 18 of file StringNormalizationExtensions.cs.
◆ IsNormalized() [2/2]
static bool System.StringNormalizationExtensions.IsNormalized |
( |
this string |
value, |
|
|
NormalizationForm |
normalizationForm |
|
) |
| |
|
static |
Indicates whether a string is in a specified Unicode normalization form.
- Parameters
-
value | A string. |
normalizationForm | A Unicode normalization form. |
- Returns
true
if value is in normalization form normalizationForm ; otherwise, false
.
- Exceptions
-
T:System.ArgumentException | value contains invalid Unicode characters. |
Definition at line 32 of file StringNormalizationExtensions.cs.
◆ Normalize() [1/2]
static string System.StringNormalizationExtensions.Normalize |
( |
this string |
value | ) |
|
|
static |
Normalizes a string to a Unicode normalization form C.
- Parameters
-
value | The string to normalize. |
- Returns
- A new string whose textual value is the same as value but whose binary representation is in Unicode normalization form C.
Definition at line 41 of file StringNormalizationExtensions.cs.
◆ Normalize() [2/2]
static string System.StringNormalizationExtensions.Normalize |
( |
this string |
value, |
|
|
NormalizationForm |
normalizationForm |
|
) |
| |
|
static |
Normalizes a string to the specified Unicode normalization form.
- Parameters
-
value | The string to normalize. |
normalizationForm | The Unicode normalization form. |
- Returns
- A new string whose textual value is the same as value but whose binary representation is in the normalizationForm normalization form.
Definition at line 52 of file StringNormalizationExtensions.cs.
The documentation for this class was generated from the following file: