MCPcopy Create free account
hub / github.com/Kitware/VTK / StringEndsWith

Function StringEndsWith

Testing/Core/HeaderTesting.py:39–44  ·  view source on GitHub ↗
(str1, str2)

Source from the content-addressed store, hash-verified

37
38## For backward compatibility
39def StringEndsWith(str1, str2):
40 l1 = len(str1)
41 l2 = len(str2)
42 if l1 < l2:
43 return 0
44 return (str1[(l1-l2):] == str2)
45
46##
47class TestVTKFiles:

Callers 10

CanReadFileMethod · 0.85
SetFileNameMethod · 0.85
CanReadFileMethod · 0.85
OpenAndReadMetaDataMethod · 0.85
LoadDataFileMethod · 0.85
CheckStringOperationsFunction · 0.85
CheckIncludesMethod · 0.85
HeaderTesting.pyFile · 0.85
ExportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected