StringNormalizationExtensions.IsNormalized Method

Definition

Indicates whether a string is normalized.

Overloads

IsNormalized(ReadOnlySpan<Char>, NormalizationForm)
IsNormalized(String)

Indicates whether the specified string is in Unicode normalization form C.

IsNormalized(String, NormalizationForm)

Indicates whether a string is in a specified Unicode normalization form.

IsNormalized(ReadOnlySpan<Char>, NormalizationForm)

C#
public static bool IsNormalized(this ReadOnlySpan<char> source, System.Text.NormalizationForm normalizationForm = System.Text.NormalizationForm.FormC);

Parameters

source
ReadOnlySpan<Char>
normalizationForm
NormalizationForm

Returns

Applies to

.NET 10
Produkt Versioner
.NET 10

IsNormalized(String)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

Indicates whether the specified string is in Unicode normalization form C.

C#
public static bool IsNormalized(this string value);
C#
public static bool IsNormalized(this string strInput);

Parameters

valuestrInput
String

A string.

Returns

true if value is in normalization form C; otherwise, false.

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to

.NET 10 och andra versioner
Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

IsNormalized(String, NormalizationForm)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

Indicates whether a string is in a specified Unicode normalization form.

C#
[System.Security.SecurityCritical]
public static bool IsNormalized(this string value, System.Text.NormalizationForm normalizationForm);
C#
public static bool IsNormalized(this string strInput, System.Text.NormalizationForm normalizationForm);

Parameters

valuestrInput
String

A string.

normalizationForm
NormalizationForm

A Unicode normalization form.

Returns

true if value is in normalization form normalizationForm; otherwise, false.

Attributes

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to

.NET 10 och andra versioner
Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0