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

◆ CombineInternal() [2/3]

static string System.IO.Path.CombineInternal ( string first,
string second,
string third )
inlinestaticprivate

Definition at line 583 of file Path.cs.

584 {
585 if (string.IsNullOrEmpty(first))
586 {
587 return CombineInternal(second, third);
588 }
589 if (string.IsNullOrEmpty(second))
590 {
591 return CombineInternal(first, third);
592 }
593 if (string.IsNullOrEmpty(third))
594 {
595 return CombineInternal(first, second);
596 }
597 if (IsPathRooted(third.AsSpan()))
598 {
599 return third;
600 }
601 if (IsPathRooted(second.AsSpan()))
602 {
603 return CombineInternal(second, third);
604 }
605 return JoinInternal(first.AsSpan(), second.AsSpan(), third.AsSpan());
606 }
static string CombineInternal(string first, string second)
Definition Path.cs:566
static bool IsPathRooted([NotNullWhen(true)] string? path)
Definition Path.cs:985
static string JoinInternal(ReadOnlySpan< char > first, ReadOnlySpan< char > second)
Definition Path.cs:641

References System.IO.Path.CombineInternal(), System.IO.Path.IsPathRooted(), and System.IO.Path.JoinInternal().