fltk.filename

Filename and URI utility functions.

This module provides functions for manipulating file paths and URIs, including extracting components, converting between relative and absolute paths, pattern matching, and opening URIs with the system default handler.

Functions 10

fnstring filenameName(string path) @trustedGets the filename portion of a path.
fnstring filenameExt(string filename) @trustedGets the extension portion of a filename.
fnstring filenameSetext(string filename, string ext) @trustedSets or replaces the extension of a filename.
fnstring filenameExpand(string path) @trustedExpands environment variables and tilde in a filename.
fnstring filenameAbsolute(string path) @trustedConverts a relative path to an absolute path.
fnstring filenameRelative(string path) @trustedConverts an absolute path to a relative path.
fnbool filenameMatch(string name, string pattern) @trustedMatches a filename against a pattern.
fnbool filenameIsdir(string path) @trustedChecks if a path is a directory.
fnbool openUri(string uri, char[] msgBuffer = null) @trustedOpens a URI using the system's default handler.
fnstring decodeUri(string uri) @trustedDecodes a URI-encoded string.

Variables 1

enumvarPATH_MAX = FLTK_PATH_MAX

Maximum path length for filename buffers.

All path buffers should use this length to ensure they can hold any valid path on the system.