14 #include <kApi/Io/kPath.x.h>
17 #define kPATH_MAX (xkPATH_MAX)
33 typedef kObject kPath;
kStatus kPath_ToCanonical(const kChar *path, kChar *normalized, kSize capacity)
Transforms all path separators to normal form, canonicalizes the path by collapsing redundant separat...
kStatus kPath_Plugin(const kChar *pluginName, kChar *pluginPath, kSize capacity)
Given a plugin name (e.g.
kStatus kPath_FileName(const kChar *path, kChar *fileName, kSize capacity)
Given a file path, returns the portion of the path containing the file name.
kStatus kPath_Application(const kChar *appName, kChar *appPath, kSize capacity)
Given a application name (e.g.
kStatus kPath_BaseName(const kChar *path, kChar *baseName, kSize capacity)
Given a file path, returns the base name by stripping the parent directory portion.
Represents an unsigned integer that can store a pointer address.
kStatus kPath_ToNative(const kChar *path, kChar *native, kSize capacity)
Transforms all path separators to native form.
kStatus kPath_LibraryName(const kChar *libraryName, kChar *fileName, kSize capacity)
Given a library name (e.g.
kStatus kPath_ToRelative(const kChar *pathA, const kChar *pathB, kChar *bRelativeToA, kSize capacity)
Expresses an absolute path in relative form, in relation to a reference path.
Represents a single unit (byte) in a UTF-8 character.
kStatus kPath_Combine(const kChar *segment1, const kChar *segment2, kChar *path, kSize capacity)
Combines two path segments using the normalized path separator character.
kStatus kPath_ToAbsolute(const kChar *pathA, const kChar *bRelativeToA, kChar *pathB, kSize capacity)
Finds the absolute path expressed by the combination of an absolute path and a relative path...
kStatus kPath_Extension(const kChar *path, kChar *extension, kSize capacity)
Given a file path, returns the portion of the path containing the file extension. ...
kBool kPath_IsAbsolute(const kChar *path)
Determines whether the provided path in an absolute path.
kStatus kPath_StripExtension(const kChar *path, kChar *strippedPath, kSize capacity)
Given a file path, returns the portion of the path excluding the file extension.
kStatus kPath_ApplicationName(const kChar *appName, kChar *fileName, kSize capacity)
Given a application name (e.g.
Core Zen type declarations.
kStatus kPath_ToNormal(const kChar *path, kChar *normalized, kSize capacity)
Transforms all path separators to normal form and removes trailing slashes.
kChar kPath_Separator()
Returns the normalized path separator character.
Represents an error code.
kStatus kPath_Directory(const kChar *path, kChar *directory, kSize capacity)
Returns the parent directory for a given file or directory path.
Represents a boolean value.
kBool kPath_IsFileNameValid(const kChar *fileName)
Reports whether the provided file name is valid.
kBool kPath_IsSeparator(kChar ch)
Determines if the given character is equal to the normalized path separator.