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

◆ IsEffectivelyEmpty()

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

Definition at line 457 of file PathInternal.cs.

458 {
459 if (path.IsEmpty)
460 {
461 return true;
462 }
463 ReadOnlySpan<char> readOnlySpan = path;
464 for (int i = 0; i < readOnlySpan.Length; i++)
465 {
466 char c = readOnlySpan[i];
467 if (c != ' ')
468 {
469 return false;
470 }
471 }
472 return true;
473 }

References System.ReadOnlySpan< T >.IsEmpty, and System.ReadOnlySpan< T >.Length.

Referenced by System.IO.DirectoryInfo.CreateSubdirectory(), System.IO.Path.GetDirectoryName(), System.IO.Path.GetDirectoryName(), System.IO.Path.GetFullPath(), System.IO.Path.GetFullPath(), System.IO.Path.GetPathRoot(), System.IO.Path.GetPathRoot(), and System.IO.Path.GetRelativePath().