diff --git a/winixd/core/misc.h b/winixd/core/misc.h index 77cb432..e983a00 100644 --- a/winixd/core/misc.h +++ b/winixd/core/misc.h @@ -379,64 +379,6 @@ bool was_comma = false; -template -bool IsSubStringp(const StringType1 * short_str, const StringType2 * long_str) -{ - while( *short_str && *long_str && wchar_t(*short_str) == wchar_t(*long_str) ) - { - ++short_str; - ++long_str; - } - - if( *short_str == 0 ) - return true; - -return false; -} - - -template -bool IsSubString(const StringType1 * short_str, const StringType2 * long_str) -{ - return IsSubStringp(short_str, long_str); -} - - -template -bool IsSubString(const StringType1 & short_str, const StringType2 & long_str) -{ - return IsSubStringp(short_str.c_str(), long_str.c_str()); -} - - -template -bool IsSubStringNoCasep(const StringType1 * short_str, const StringType2 * long_str) -{ - while( *short_str && *long_str && PT::ToLower(*short_str) == PT::ToLower(*long_str) ) - { - ++short_str; - ++long_str; - } - - if( *short_str == 0 ) - return true; - -return false; -} - -template -bool IsSubStringNoCase(const StringType1 * short_str, const StringType2 * long_str) -{ - return IsSubStringNoCasep(short_str, long_str); -} - - -template -bool IsSubStringNoCase(const StringType1 & short_str, const StringType2 & long_str) -{ - return IsSubStringNoCasep(short_str.c_str(), long_str.c_str()); -} - template