From 8f6004d444c28b7b7b6f287324df08a3bd7ef455 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 29 Oct 2018 23:51:11 +0000 Subject: [PATCH] removed some IsSubstring* functions (they are in Pikotools in text/convert.h now) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1135 e52654a7-88a9-db11-a3e9-0013d4bc506e --- winixd/core/misc.h | 58 ---------------------------------------------- 1 file changed, 58 deletions(-) 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