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

◆ MatchSpecifiedWord()

bool System.__DTString.MatchSpecifiedWord ( string target)
inlinepackage

Definition at line 169 of file __DTString.cs.

170 {
171 if (Index + target.Length <= Length)
172 {
173 return m_info.Compare(Value.Slice(Index, target.Length), target, CompareOptions.IgnoreCase) == 0;
174 }
175 return false;
176 }
int Compare(string? string1, string? string2)
ReadOnlySpan< T > Slice(int start)
readonly CompareInfo m_info
Definition __DTString.cs:14
ReadOnlySpan< char > Value
Definition __DTString.cs:8

References System.Globalization.CompareInfo.Compare(), System.__DTString.Length, System.__DTString.m_info, System.ReadOnlySpan< T >.Slice(), and System.__DTString.Value.