StringNormalizationExtensions.IsNormalized Metod

Definition

Anger om en sträng normaliseras.

Överlagringar

Name Description
IsNormalized(ReadOnlySpan<Char>, NormalizationForm)

Avgör om det angivna teckenintervallet är i normaliserat format.

IsNormalized(String)

Anger om den angivna strängen är i Unicode-normaliseringsformulär C.

IsNormalized(String, NormalizationForm)

Anger om en sträng är i ett angivet Unicode-normaliseringsformulär.

IsNormalized(ReadOnlySpan<Char>, NormalizationForm)

Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs

Avgör om det angivna teckenintervallet är i normaliserat format.

public static bool IsNormalized(this ReadOnlySpan<char> source, System.Text.NormalizationForm normalizationForm = System.Text.NormalizationForm.FormC);
static member IsNormalized : ReadOnlySpan<char> * System.Text.NormalizationForm -> bool
<Extension()>
Public Function IsNormalized (source As ReadOnlySpan(Of Char), Optional normalizationForm As NormalizationForm = System.Text.NormalizationForm.FormC) As Boolean

Parametrar

source
ReadOnlySpan<Char>

Det intervall med tecken som ska kontrolleras.

normalizationForm
NormalizationForm

Det normaliseringsformulär som ska användas.

Returer

trueom det angivna teckenintervallet är i normaliserad form; annars . false

Undantag

Det angivna teckenintervallet innehåller en ogiltig kodpunkt eller så är normaliseringsformuläret ogiltigt.

Gäller för

IsNormalized(String)

Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs

Anger om den angivna strängen är i Unicode-normaliseringsformulär C.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ value);
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ strInput);
public static bool IsNormalized(this string value);
public static bool IsNormalized(this string strInput);
static member IsNormalized : string -> bool
static member IsNormalized : string -> bool
<Extension()>
Public Function IsNormalized (value As String) As Boolean
<Extension()>
Public Function IsNormalized (strInput As String) As Boolean

Parametrar

valuestrInput
String

En sträng.

Returer

trueom value är i normaliseringsform C; annars . false

Undantag

value är null.

value innehåller ogiltiga Unicode-tecken.

Gäller för

IsNormalized(String, NormalizationForm)

Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs
Källa:
StringNormalizationExtensions.cs

Anger om en sträng är i ett angivet Unicode-normaliseringsformulär.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ value, System::Text::NormalizationForm normalizationForm);
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ strInput, System::Text::NormalizationForm normalizationForm);
[System.Security.SecurityCritical]
public static bool IsNormalized(this string value, System.Text.NormalizationForm normalizationForm);
public static bool IsNormalized(this string strInput, System.Text.NormalizationForm normalizationForm);
[<System.Security.SecurityCritical>]
static member IsNormalized : string * System.Text.NormalizationForm -> bool
static member IsNormalized : string * System.Text.NormalizationForm -> bool
<Extension()>
Public Function IsNormalized (value As String, normalizationForm As NormalizationForm) As Boolean
<Extension()>
Public Function IsNormalized (strInput As String, normalizationForm As NormalizationForm) As Boolean

Parametrar

valuestrInput
String

En sträng.

normalizationForm
NormalizationForm

Ett Unicode-normaliseringsformulär.

Returer

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

Attribut

Undantag

value är null.

value innehåller ogiltiga Unicode-tecken.

Gäller för