Commit 974dc90e authored by Sebastien Barre's avatar Sebastien Barre
Browse files

ENH: remove deps to vtkString by using KWSys (a handful of functions have been moved to KWSys)

parent 167c2e18
......@@ -937,18 +937,18 @@ char* SystemTools::ReplaceChars(char* str, const char *toreplace, char replaceme
}
// Returns if string starts with another string
bool vtkString::StringStartsWith(const char* str1, const char* str2)
bool SystemTools::StringStartsWith(const char* str1, const char* str2)
{
if (!str1 || !str2)
{
return false;
}
size_t len1 = strlen(str1), len2 = strlen(str2);
return len1 >= len2 && !strncmp(str1, str2, len2) ? true : false
return len1 >= len2 && !strncmp(str1, str2, len2) ? true : false;
}
// Returns if string ends with another string
bool vtkString::StringEndsWith(const char* str1, const char* str2)
bool SystemTools::StringEndsWith(const char* str1, const char* str2)
{
if (!str1 || !str2)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment