From effbdf8d8f0d32cff11212588ec0fd4e73d7af0c Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Thu, 10 Mar 2005 17:49:27 -0500 Subject: [PATCH] ENH: remove deps to vtkString by using KWSys (a handful of functions have been moved to KWSys) --- Source/kwsys/SystemTools.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 5abac9930..62401a0f9 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -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) {