mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
just tried to find all 'skipp' and replace it with 'skip'.
This commit is contained in:
@ -521,7 +521,7 @@ int String::strstr(const String &s,uint32 offset)
|
||||
register const char *search=s.ptr();
|
||||
const char *end=Ptr+str_length-s.length()+1;
|
||||
const char *search_end=s.ptr()+s.length();
|
||||
skipp:
|
||||
skip:
|
||||
while (str != end)
|
||||
{
|
||||
if (*str++ == *search)
|
||||
@ -529,7 +529,7 @@ skipp:
|
||||
register char *i,*j;
|
||||
i=(char*) str; j=(char*) search+1;
|
||||
while (j != search_end)
|
||||
if (*i++ != *j++) goto skipp;
|
||||
if (*i++ != *j++) goto skip;
|
||||
return (int) (str-Ptr) -1;
|
||||
}
|
||||
}
|
||||
@ -553,7 +553,7 @@ int String::strstr_case(const String &s,uint32 offset)
|
||||
register const char *search=s.ptr();
|
||||
const char *end=Ptr+str_length-s.length()+1;
|
||||
const char *search_end=s.ptr()+s.length();
|
||||
skipp:
|
||||
skip:
|
||||
while (str != end)
|
||||
{
|
||||
if (str_charset->sort_order[*str++] == str_charset->sort_order[*search])
|
||||
@ -563,7 +563,7 @@ skipp:
|
||||
while (j != search_end)
|
||||
if (str_charset->sort_order[*i++] !=
|
||||
str_charset->sort_order[*j++])
|
||||
goto skipp;
|
||||
goto skip;
|
||||
return (int) (str-Ptr) -1;
|
||||
}
|
||||
}
|
||||
@ -586,7 +586,7 @@ int String::strrstr(const String &s,uint32 offset)
|
||||
|
||||
const char *end=Ptr+s.length()-2;
|
||||
const char *search_end=s.ptr()-1;
|
||||
skipp:
|
||||
skip:
|
||||
while (str != end)
|
||||
{
|
||||
if (*str-- == *search)
|
||||
@ -594,7 +594,7 @@ skipp:
|
||||
register char *i,*j;
|
||||
i=(char*) str; j=(char*) search-1;
|
||||
while (j != search_end)
|
||||
if (*i-- != *j--) goto skipp;
|
||||
if (*i-- != *j--) goto skip;
|
||||
return (int) (i-Ptr) +1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user