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

◆ ToLowerAsciiInvariant() [2/2]

static unsafe string System.Globalization.TextInfo.ToLowerAsciiInvariant ( string s)
inlinestaticpackage

Definition at line 371 of file TextInfo.cs.

372 {
373 if (s.Length == 0)
374 {
375 return string.Empty;
376 }
377 fixed (char* ptr = s)
378 {
379 int i;
380 for (i = 0; i < s.Length && (uint)(ptr[i] - 65) > 25u; i++)
381 {
382 }
383 if (i >= s.Length)
384 {
385 return s;
386 }
387 string text = string.FastAllocateString(s.Length);
388 fixed (char* ptr2 = text)
389 {
390 for (int j = 0; j < i; j++)
391 {
392 ptr2[j] = ptr[j];
393 }
394 ptr2[i] = (char)(ptr[i] | 0x20u);
395 for (i++; i < s.Length; i++)
396 {
398 }
399 }
400 return text;
401 }
402 }
static unsafe string ToLowerAsciiInvariant(string s)
Definition TextInfo.cs:371

References System.Runtime.Serialization.Dictionary, System.s, System.text, and System.Globalization.TextInfo.ToLowerAsciiInvariant().

Referenced by System.Globalization.CultureData.AnsiToLower(), System.Globalization.TextInfo.ToLower(), System.Globalization.TextInfo.ToLowerAsciiInvariant(), and System.Globalization.TextInfo.ToLowerInvariant().