Describe all operations of AddBackslash()
This commit is contained in:
parent
5bd7fc2a28
commit
13d2b4f059
@ -120,6 +120,8 @@
|
|||||||
#define GOLD_SHELL_ENV "SHELL"
|
#define GOLD_SHELL_ENV "SHELL"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define GOLD_ALL_SLASH_STR "/\\" // GOLD_SLASH_STR GOLD_WRONG_SLASH_STR
|
||||||
|
|
||||||
inline bool isslash(char c) { return (c == GOLD_SLASH_CHR) or (c == GOLD_WRONG_SLASH_CHR); }
|
inline bool isslash(char c) { return (c == GOLD_SLASH_CHR) or (c == GOLD_WRONG_SLASH_CHR); }
|
||||||
|
|
||||||
|
|
||||||
@ -192,6 +194,7 @@ void MakePathname(char* pathname, const char* path, const char* name);
|
|||||||
void MakePathname(std::string& pathname, const std::string& path, const std::string& name);
|
void MakePathname(std::string& pathname, const std::string& path, const std::string& name);
|
||||||
|
|
||||||
// Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS)
|
// Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS)
|
||||||
|
// Replace wrong directory-delimiter character with good.
|
||||||
char* AddBackslash(char* p);
|
char* AddBackslash(char* p);
|
||||||
std::string& AddBackslash(std::string& p);
|
std::string& AddBackslash(std::string& p);
|
||||||
|
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
// Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS)
|
// Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS)
|
||||||
|
// Replace wrong directory-delimiter character with good.
|
||||||
|
|
||||||
char* AddBackslash(char* p) {
|
char* AddBackslash(char* p) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user