Provides methods for creating, manipulating, searching, and sorting arrays.
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Performs operations on String instances that contain file or directory path information.
static bool Exists(const String &sFilePath)
Determines whether the given path refers to an existing file or directory on disk.
static String ChangeExtension(const String &sFilePath, const String &sExtension)
Changes the extension of a path string.
static String GetRelativePath(const String &sRelativeTo, const String &sPath)
Returns a relative path from one path to another.
static bool EndsInDirectorySeparator(const String &sFilePath)
Returns a value that indicates whether the specified path ends in a directory separator.
static char GetDirectorySeparatorChar()
Provides a platform-specific character used to separate directory levels in a path.
static Array< char > GetInvalidPathChars()
Gets an array of characters that cannot be present in path names.
static bool TryJoin(const std::initializer_list< String > sPaths, String &sResult)
Attempts to concatenate an array of paths into a single path.
static String GetExtension(const String &sFilePath)
Returns the extension of the specified path string.
static String GetRandomFileName()
Returns a random folder name or file name.
static String TrimEndingDirectorySeparator(const String &sPath)
Trims one trailing directory separator beyond the root of the specified path.
static String GetTempPath()
Returns the path of the current user's temporary folder.
static String GetFullPath(const String &sPath)
Returns the absolute path for the specified path string.
static String Combine(const std::initializer_list< String > sPaths)
Combines an array of strings into a path.
static String GetDirectoryName(const String &sFilePath)
Returns the directory information for the specified path string.
static char GetPathSeparator()
A platform-specific separator character used to separate path strings in environment variables.
static String GetPathRoot(const String &sPath)
Gets the root directory information from the path contained in the specified string.
static char GetAltDirectorySeparatorChar()
Provides a platform-specific alternate character used to separate directory levels.
static Array< char > GetInvalidFileNameChars()
Gets an array of characters that cannot be present in file names.
static String Join(const std::initializer_list< String > sPaths)
Concatenates an array of paths into a single path.
static char GetVolumeSeparatorChar()
Provides a platform-specific volume separator character.
static String GetTempFileName()
Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file.
static bool IsPathFullyQualified(const String &sPath)
Returns a value that indicates whether the specified path is fully qualified.
static String GetFileName(const String &sFilePath)
Returns the file name and extension of the specified path string.
static bool IsPathRooted(const String &sPath)
Returns a value that indicates whether the specified path string contains a root.
static bool HasExtension(const String &sPath)
Determines whether a path includes a file name extension.
static String GetFileNameWithoutExtension(const String &sFilePath)
Returns the file name of the specified path string without the extension.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.