Show / Hide Table of Contents

Class PathPositions

Use these constants to document path string parsing.

Since static classes are implicitly sealed, this class cannot be inherited.

Inheritance
System.Object
PathPositions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: WizardWrx
Assembly: WizardWrx.Common.dll
Syntax
public static class PathPositions

Fields

| Improve this Doc View Source

FQFN_PREFIX_START_LEN

The prefix of an absolute path string is TWO characters. Some very OLD programs, display little or no awareness of directories. Hence, they render only the first of the two characters (the full colon).

By this means, you can tell whether a path name is one of these 'old" path strings, or, at the very least, must be interpreted relative to the logged directory on the specified logical drive.

Declaration
public const int FQFN_PREFIX_START_LEN = 2
Field Value
Type Description
System.Int32
| Improve this Doc View Source

FQFN_PREFIX_START_POS

The FQFN prefix refers to the drive and path substring, ":" which starts in the second position of the substring, preceded by the logical drive letter. In keeping with the treatment of strings and substrings as arrays, its value is an index. Accordingly, its value is equated to ArrayInfo.ARRAY_SECOND_ELEMENT.

Declaration
public const int FQFN_PREFIX_START_POS = 1
Field Value
Type Description
System.Int32
| Improve this Doc View Source

MAX_PATH

In theory, Windows NT supports really long file names that can run to thousands of characters. However, due to the limitations of the commonly used Windows file system APIs, the practical limit on the length of a file name string remains stuck at MAX_PATH, 260 characters.

Declaration
public const int MAX_PATH = 260
Field Value
Type Description
System.Int32
| Improve this Doc View Source

UNC_HOSTNAME_PREFIX_POS

By their very nature, a canonical UNC path string is absolute, and it must begin with two fixed characters, "\". In keeping with the treatment of string and substrings as arrays, its value is an index. Accordingly, its value is equated to ArrayInfo.ARRAY_SECOND_ELEMENT.

Declaration
public const int UNC_HOSTNAME_PREFIX_POS = 0
Field Value
Type Description
System.Int32
| Improve this Doc View Source

UNC_HOSTNAME_START_POS

Since a UNC path string begins with two fixed characters, it follows that the hostname, itself, begins at offset 2 (character 3). In keeping with the treatment of string and substrings as arrays, its value is an index.

Declaration
public const int UNC_HOSTNAME_START_POS = 2
Field Value
Type Description
System.Int32

See Also

ArrayInfo
ListInfo
MagicNumbers
SpecialCharacters
  • Improve this Doc
  • View Source
Back to top Generated by DocFX