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

◆ IsPartiallyQualified() [2/3]

static bool System.IO.PathInternal.IsPartiallyQualified ( ReadOnlySpan< char > path)
inlinestaticpackage

Definition at line 381 of file PathInternal.cs.

382 {
383 if (path.Length < 2)
384 {
385 return true;
386 }
387 if (IsDirectorySeparator(path[0]))
388 {
389 if (path[1] != '?')
390 {
391 return !IsDirectorySeparator(path[1]);
392 }
393 return false;
394 }
395 if (path.Length >= 3 && path[1] == ':' && IsDirectorySeparator(path[2]))
396 {
397 return !IsValidDriveChar(path[0]);
398 }
399 return true;
400 }
static bool IsValidDriveChar(char value)
static bool IsDirectorySeparator(char c)

References System.IO.PathInternal.IsDirectorySeparator(), System.IO.PathInternal.IsValidDriveChar(), and System.ReadOnlySpan< T >.Length.