diff options
author | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-05-25 16:05:33 +0500 |
---|---|---|
committer | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-05-25 16:05:33 +0500 |
commit | 6c09db274773a36350b8a3f794a847684bd0ca30 (patch) | |
tree | a55a4d47349e4c9f8591d7ee4d95157367a87738 /sql/sql_string.cc | |
parent | 9983aed876568891e07fbdeed402c9c7f1320c03 (diff) | |
download | mariadb-git-6c09db274773a36350b8a3f794a847684bd0ca30.tar.gz |
sql_string.h:
Not used code.
,
sql_string.cc:
Not used code.
sql/sql_string.cc:
Not used code.
sql/sql_string.h:
Not used code.
,
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r-- | sql/sql_string.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc index b60aee2b5df..991fb4d5c5a 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -570,40 +570,6 @@ skip: } /* - Search after a string without regarding to case - This needs to be replaced when we have character sets per string -*/ - -int String::strstr_case(const String &s,uint32 offset) -{ - if (s.length()+offset <= str_length) - { - if (!s.length()) - return ((int) offset); // Empty string is always found - - register const char *str = Ptr+offset; - register const char *search=s.ptr(); - const char *end=Ptr+str_length-s.length()+1; - const char *search_end=s.ptr()+s.length(); -skip: - while (str != end) - { - if (str_charset->sort_order[*str++] == str_charset->sort_order[*search]) - { - register char *i,*j; - i=(char*) str; j=(char*) search+1; - while (j != search_end) - if (str_charset->sort_order[*i++] != - str_charset->sort_order[*j++]) - goto skip; - return (int) (str-Ptr) -1; - } - } - } - return -1; -} - -/* ** Search string from end. Offset is offset to the end of string */ |