ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Generate and return a path quoted with single quotation marks where all instances of single quotes \(\ms{'}\) within the path are replaced with \(\ms{'\''}\).
More...
Generate and return a path quoted with single quotation marks where all instances of single quotes \(\ms{'}\) within the path are replaced with \(\ms{'\''}\).
POSIX-style paths can contain almost any character including single or double quotation marks.
To simplify the task and minimize the risks, this procedure quotes all input POSIX style paths with single quotation marks.
Enclosing the path with single quotation marks requires escaping any existing instances of single quotes within the path.
This is done by replacing all instances of \(\ms{'}\) within the path are replaced with \(\ms{'\''}\).
Optionally, if a set of wildcard characters are also specified, all instances of such characters identified within the specified path
are properly excluded from the quotations, such that the resulting output path can be used as pattern for globing.
[in] | path | : The input scalar character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) containing the path to be enclosed with quotation marks. |
pathVerbatim
: The output allocatable
scalar of type character
of the same kind as path
containing the modified input path
enclosed with single quotation marks where all instances of single quotation marks within the path are escaped.
Possible calling interfaces ⛓
pure
procedure(s) documented herein become impure
when the ParaMonte library is compiled with preprocessor macro CHECK_ENABLED=1
.pure
in release
build and impure
in debug
and testing
builds. The impurity is caused by the call to procedures whose purity depends on the library build configuration.
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Definition at line 5199 of file pm_sysPath.F90.