39 fixed (
char* src = strInput)
58 for (
int i = 0; i < 2; i++)
61 fixed (
char* src = strInput)
75 return readOnlySpan.SequenceEqual(strInput) ? strInput :
new string(readOnlySpan);
81 char[] array2 =
array;
116 for (
int i = 0; i <
s.Length; i++)
127 if (
char.IsLowSurrogate(c))
131 if (
char.IsHighSurrogate(c))
133 if (i + 1 >=
s.Length || !
char.IsLowSurrogate(
s[i + 1]))
146 fixed (
char*
source = strInput)
151 switch (lastPInvokeError)
171 if (strInput.Length == 0)
183 fixed (
char*
source = strInput)
191 switch (lastPInvokeError)
196 return readOnlySpan.SequenceEqual(strInput) ? strInput :
new string(readOnlySpan);
202 char[] array2 =
array;
static unsafe int IsNormalized(NormalizationForm normalizationForm, char *src, int srcLen)
static unsafe int NormalizeString(NormalizationForm normalizationForm, char *src, int srcLen, char *dstBuffer, int dstBufferCapacity)
static unsafe int NormalizeString(NormalizationForm normForm, char *source, int sourceLength, char *destination, int destinationLength)
static unsafe BOOL IsNormalizedString(NormalizationForm normForm, char *source, int length)
static ArrayPool< T > Shared
static unsafe string NlsNormalize(string strInput, NormalizationForm normalizationForm)
static unsafe bool NlsIsNormalized(string strInput, NormalizationForm normalizationForm)
static string Normalize(string strInput, NormalizationForm normalizationForm)
static unsafe bool IcuIsNormalized(string strInput, NormalizationForm normalizationForm)
static bool IsNormalized(string strInput, NormalizationForm normalizationForm)
static unsafe string IcuNormalize(string strInput, NormalizationForm normalizationForm)
static bool HasInvalidUnicodeSequence(string s)
static void ValidateArguments(string strInput, NormalizationForm normalizationForm)
static double Abs(double value)
static int GetLastPInvokeError()
static string Argument_InvalidCharSequenceNoIndex
static string Format(string resourceFormat, object p1)
static string Argument_InvalidNormalizationForm
static string UnknownError_Num
Span< T > Slice(int start)