[#BloombergLP-bdls-PathUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::PathUtil
:relfileprefix: ../../
:mrdocs:

Utility for platform&hyphen;independent filesystem path string manipulation&period;

== Synopsis

Declared in `&lt;bdls&lowbar;pathutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct PathUtil;
----

== Description

This struct contains utility methods for platform&hyphen;independent manipulation of filesystem paths&period; No method of this struct provides any filesystem operations or accesses the filesystem as part of its implementation&period;

== 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&period;
| xref:BloombergLP/bdls/PathUtil/appendRaw-084.adoc[`appendRaw`] 
| Append a filename to the end of a path&period;
| xref:BloombergLP/bdls/PathUtil/getBasename-04.adoc[`getBasename`] 
| Load the leaf (basename) element of a path&period;
| xref:BloombergLP/bdls/PathUtil/getDirname-0b.adoc[`getDirname`] 
| Load the directory part of a path&period;
| xref:BloombergLP/bdls/PathUtil/getExtension-0b.adoc[`getExtension`] 
| Load the extension of a path&period;
| xref:BloombergLP/bdls/PathUtil/getLeaf-0d.adoc[`getLeaf`] 
| Load the leaf element of a path&period;
| xref:BloombergLP/bdls/PathUtil/getRoot-04.adoc[`getRoot`] 
| Load the root portion of a path&period;
| xref:BloombergLP/bdls/PathUtil/getRootEnd.adoc[`getRootEnd`] 
| Return the position in a path of the character following the root&period;
| xref:BloombergLP/bdls/PathUtil/hasLeaf.adoc[`hasLeaf`] 
| Return whether a path has a leaf following the root&period;
| xref:BloombergLP/bdls/PathUtil/isAbsolute.adoc[`isAbsolute`] 
| Return whether a path is absolute&period;
| xref:BloombergLP/bdls/PathUtil/isRelative.adoc[`isRelative`] 
| Return whether a path is relative&period;
| xref:BloombergLP/bdls/PathUtil/popLeaf-0f.adoc[`popLeaf`] 
| Remove the leaf element from a path&period;
| xref:BloombergLP/bdls/PathUtil/splitFilename.adoc[`splitFilename`] 
| Split a path into its head and last pathname component&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdls/PathUtil/k_SEPARATOR.adoc[`k&lowbar;SEPARATOR`] 
| Character used as the preferred path separator on this platform&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
