MCPcopy Create free account
hub / github.com/OSGeo/gdal / endsWith

Method endsWith

port/cplstring.cpp:377–382  ·  view source on GitHub ↗

* Returns whether the string ends with another string * @param osStr other string. * @return true if the string ends with osStr. */

Source from the content-addressed store, hash-verified

375 * @return true if the string ends with osStr.
376 */
377bool CPLString::endsWith(const std::string &osStr) const
378{
379 if (size() < osStr.size())
380 return false;
381 return substr(size() - osStr.size()) == osStr;
382}
383
384/************************************************************************/
385/* URLEncode() */

Callers 14

IsPrivateLayerNameMethod · 0.80
ExecuteSQLMethod · 0.80
OGRShapeDriverIdentifyFunction · 0.80
OGRShapeDriverOpenFunction · 0.80
OGRShapeDriverCreateFunction · 0.80
OGRShapeDriverDeleteFunction · 0.80
PamAllocateProxyFunction · 0.80
mainMethod · 0.80
AnalyseAzureFileListMethod · 0.80
AnalyseS3FileListMethod · 0.80
JPEGDriverIdentifyFunction · 0.80

Calls 2

sizeFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected