Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FindString()

unsafe int System.Globalization.CompareInfo.FindString ( uint dwFindNLSStringFlags,
ReadOnlySpan< char > lpStringSource,
ReadOnlySpan< char > lpStringValue,
int * pcchFound )
inlineprivate

Definition at line 2018 of file CompareInfo.cs.

2019 {
2020 string text = ((_sortHandle != IntPtr.Zero) ? null : _sortName);
2021 int num = lpStringSource.Length;
2022 if (num == 0)
2023 {
2024 lpStringSource = string.Empty;
2025 num = -1;
2026 }
2027 fixed (char* lpLocaleName = text)
2028 {
2029 fixed (char* lpStringSource2 = &MemoryMarshal.GetReference(lpStringSource))
2030 {
2031 fixed (char* lpStringValue2 = &MemoryMarshal.GetReference(lpStringValue))
2032 {
2034 }
2035 }
2036 }
2037 }
static unsafe int FindNLSStringEx(char *lpLocaleName, uint dwFindNLSStringFlags, char *lpStringSource, int cchSource, char *lpStringValue, int cchValue, int *pcchFound, void *lpVersionInformation, void *lpReserved, IntPtr sortHandle)

References System.Globalization.CompareInfo._sortHandle, System.Globalization.CompareInfo._sortName, System.Runtime.Serialization.Dictionary, Interop.Kernel32.FindNLSStringEx(), System.text, and System.IntPtr.Zero.

Referenced by System.Globalization.CompareInfo.NlsEndsWith(), System.Globalization.CompareInfo.NlsIndexOfCore(), and System.Globalization.CompareInfo.NlsStartsWith().