Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d0c761e6
Commit
d0c761e6
authored
May 25, 2004
by
bar@bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_string.h:
Not used code. , sql_string.cc: Not used code.
parent
3f8996f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
sql/sql_string.cc
sql/sql_string.cc
+0
-34
sql/sql_string.h
sql/sql_string.h
+0
-1
No files found.
sql/sql_string.cc
View file @
d0c761e6
...
@@ -569,40 +569,6 @@ skip:
...
@@ -569,40 +569,6 @@ skip:
return
-
1
;
return
-
1
;
}
}
/*
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
** Search string from end. Offset is offset to the end of string
*/
*/
...
...
sql/sql_string.h
View file @
d0c761e6
...
@@ -197,7 +197,6 @@ public:
...
@@ -197,7 +197,6 @@ public:
bool
append_with_prefill
(
const
char
*
s
,
uint32
arg_length
,
bool
append_with_prefill
(
const
char
*
s
,
uint32
arg_length
,
uint32
full_length
,
char
fill_char
);
uint32
full_length
,
char
fill_char
);
int
strstr
(
const
String
&
search
,
uint32
offset
=
0
);
// Returns offset to substring or -1
int
strstr
(
const
String
&
search
,
uint32
offset
=
0
);
// Returns offset to substring or -1
int
strstr_case
(
const
String
&
s
,
uint32
offset
=
0
);
int
strrstr
(
const
String
&
search
,
uint32
offset
=
0
);
// Returns offset to substring or -1
int
strrstr
(
const
String
&
search
,
uint32
offset
=
0
);
// Returns offset to substring or -1
bool
replace
(
uint32
offset
,
uint32
arg_length
,
const
char
*
to
,
uint32
length
);
bool
replace
(
uint32
offset
,
uint32
arg_length
,
const
char
*
to
,
uint32
length
);
bool
replace
(
uint32
offset
,
uint32
arg_length
,
const
String
&
to
);
bool
replace
(
uint32
offset
,
uint32
arg_length
,
const
String
&
to
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment