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

◆ MatchContents()

static bool Terraria.ModLoader.Logging.MatchContents ( ReadOnlySpan< char > traceString,
ReadOnlySpan< char > contentPattern )
inlinestaticprivate

Definition at line 442 of file Logging.cs.

443 {
444 while (true)
445 {
446 int sep = contentPattern.IndexOf("..");
449 if (sep < 0)
450 {
452 }
453 else
454 {
456 readOnlySpan = readOnlySpan2.Slice(0, sep);
457 }
459 int f = traceString.IndexOf(i);
460 if (f < 0)
461 {
462 return false;
463 }
464 if (sep < 0)
465 {
466 break;
467 }
469 int num = f + i.Length;
470 traceString = readOnlySpan2.Slice(num, readOnlySpan2.Length - num);
472 num = sep + 2;
474 }
475 return true;
476 }

Referenced by Terraria.ModLoader.Logging.FirstChanceExceptionHandler().

+ Here is the caller graph for this function: