MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / FindExternalFilename

Method FindExternalFilename

src/PathUtils.cpp:87–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87const char* PU::FindExternalFilename(const char * externalpath) {
88 if (!externalpath)
89 return NULL;
90
91 const char * name = strrchr(externalpath, '/');
92 if (name)
93 name++; //skip '/'
94 else
95 return NULL;
96
97 if (name == externalpath || name[0] == '/' || name[0] == 0)
98 return NULL;
99
100 return name;
101}
102
103const TCHAR* PU::FindLocalFilename(const TCHAR * localpath) {
104 if (!localpath)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected