[#BloombergLP-bdls-PathUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::PathUtil :relfileprefix: ../../ :mrdocs: Utility for platform‐independent filesystem path string manipulation. == Synopsis Declared in `<bdls_pathutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct PathUtil; ---- == Description This struct contains utility methods for platform‐independent manipulation of filesystem paths. No method of this struct provides any filesystem operations or accesses the filesystem as part of its implementation. == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdls/PathUtil/appendIfValid-0a.adoc[`appendIfValid`] | Append a relative filename to the end of a path. | xref:BloombergLP/bdls/PathUtil/appendRaw-084.adoc[`appendRaw`] | Append a filename to the end of a path. | xref:BloombergLP/bdls/PathUtil/getBasename-04.adoc[`getBasename`] | Load the leaf (basename) element of a path. | xref:BloombergLP/bdls/PathUtil/getDirname-0b.adoc[`getDirname`] | Load the directory part of a path. | xref:BloombergLP/bdls/PathUtil/getExtension-0b.adoc[`getExtension`] | Load the extension of a path. | xref:BloombergLP/bdls/PathUtil/getLeaf-0d.adoc[`getLeaf`] | Load the leaf element of a path. | xref:BloombergLP/bdls/PathUtil/getRoot-04.adoc[`getRoot`] | Load the root portion of a path. | xref:BloombergLP/bdls/PathUtil/getRootEnd.adoc[`getRootEnd`] | Return the position in a path of the character following the root. | xref:BloombergLP/bdls/PathUtil/hasLeaf.adoc[`hasLeaf`] | Return whether a path has a leaf following the root. | xref:BloombergLP/bdls/PathUtil/isAbsolute.adoc[`isAbsolute`] | Return whether a path is absolute. | xref:BloombergLP/bdls/PathUtil/isRelative.adoc[`isRelative`] | Return whether a path is relative. | xref:BloombergLP/bdls/PathUtil/popLeaf-0f.adoc[`popLeaf`] | Remove the leaf element from a path. | xref:BloombergLP/bdls/PathUtil/splitFilename.adoc[`splitFilename`] | Split a path into its head and last pathname component. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdls/PathUtil/k_SEPARATOR.adoc[`k_SEPARATOR`] | Character used as the preferred path separator on this platform. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#