MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / endsWithExt

Function endsWithExt

src/simulate/fs_file_info.cpp:230–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229#if !defined(DAS_NO_FILEIO)
230 static bool endsWithExt ( const string & s, const char * suf ) {
231 size_t n = strlen(suf);
232 return s.size() >= n && memcmp(s.data() + s.size() - n, suf, n) == 0;
233 }
234#endif
235
236 ModuleInfo FsFileAccess::getModuleInfo ( const string & req, const string & from ) const {

Callers 1

getModuleInfoMethod · 0.85

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected