X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Futil.hxx;h=70067d3e34dcc8eb2dcca6191053137c119b3796;hb=b587400846111cc4d6713dcdd38b715c97923d5a;hp=a3dba939abc2783455affea66dd867b5bf25c307;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/Main/util.hxx b/src/Main/util.hxx index a3dba939a..70067d3e3 100644 --- a/src/Main/util.hxx +++ b/src/Main/util.hxx @@ -74,4 +74,21 @@ extern void fgExit (int status = 0); extern double fgGetLowPass (double current, double target, double timeratio); +/** + * Unescape string. + * + * @param str String possibly containing escaped characters. + * @return string with escaped characters replaced by single character values. + */ +extern std::string fgUnescape (const char *str); + + +/** + * Validation listener interface for io.nas, used by fgcommands. + * @param path Path to be validated + * @param write True for write operations and false for read operations. + * @return The validated path on success or 0 if access denied. + */ +extern const char *fgValidatePath (const char *path, bool write); + #endif // __UTIL_HXX