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
abb4c363
Commit
abb4c363
authored
Oct 20, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oops forgot to commit ft_parser.c :-[]
parent
c60ef816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
myisam/ft_parser.c
myisam/ft_parser.c
+9
-9
No files found.
myisam/ft_parser.c
View file @
abb4c363
...
@@ -83,7 +83,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -83,7 +83,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
FT_WORD
*
word
,
FTB_PARAM
*
param
)
FT_WORD
*
word
,
FTB_PARAM
*
param
)
{
{
byte
*
doc
=*
start
;
byte
*
doc
=*
start
;
int
mwc
;
uint
mwc
,
length
;
param
->
yesno
=
(
FTB_YES
==
' '
)
?
1
:
(
param
->
quot
!=
0
);
param
->
yesno
=
(
FTB_YES
==
' '
)
?
1
:
(
param
->
quot
!=
0
);
param
->
plusminus
=
param
->
pmsign
=
0
;
param
->
plusminus
=
param
->
pmsign
=
0
;
...
@@ -120,8 +120,8 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -120,8 +120,8 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
param
->
plusminus
=
param
->
pmsign
=
0
;
param
->
plusminus
=
param
->
pmsign
=
0
;
}
}
mwc
=
0
;
mwc
=
length
=
0
;
for
(
word
->
pos
=
doc
;
doc
<
end
;
doc
++
)
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
doc
+=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
)
)
if
(
true_word_char
(
cs
,
*
doc
))
if
(
true_word_char
(
cs
,
*
doc
))
mwc
=
0
;
mwc
=
0
;
else
if
(
!
misc_word_char
(
*
doc
)
||
mwc
++
)
else
if
(
!
misc_word_char
(
*
doc
)
||
mwc
++
)
...
@@ -132,8 +132,8 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -132,8 +132,8 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
if
((
param
->
trunc
=
(
doc
<
end
&&
*
doc
==
FTB_TRUNC
)))
if
((
param
->
trunc
=
(
doc
<
end
&&
*
doc
==
FTB_TRUNC
)))
doc
++
;
doc
++
;
if
(((
word
->
len
>=
ft_min_word_len
&&
!
is_stopword
(
word
->
pos
,
word
->
len
))
if
(((
length
>=
ft_min_word_len
&&
!
is_stopword
(
word
->
pos
,
word
->
len
))
||
param
->
trunc
)
&&
word
->
len
<
ft_max_word_len
)
||
param
->
trunc
)
&&
length
<
ft_max_word_len
)
{
{
*
start
=
doc
;
*
start
=
doc
;
return
1
;
return
1
;
...
@@ -146,7 +146,7 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -146,7 +146,7 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
FT_WORD
*
word
)
FT_WORD
*
word
)
{
{
byte
*
doc
=*
start
;
byte
*
doc
=*
start
;
int
mwc
;
uint
mwc
,
length
;
DBUG_ENTER
(
"ft_simple_get_word"
);
DBUG_ENTER
(
"ft_simple_get_word"
);
while
(
doc
<
end
)
while
(
doc
<
end
)
...
@@ -156,8 +156,8 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -156,8 +156,8 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
if
(
true_word_char
(
cs
,
*
doc
))
break
;
if
(
true_word_char
(
cs
,
*
doc
))
break
;
}
}
mwc
=
0
;
mwc
=
length
=
0
;
for
(
word
->
pos
=
doc
;
doc
<
end
;
doc
++
)
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
doc
+=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
)
)
if
(
true_word_char
(
cs
,
*
doc
))
if
(
true_word_char
(
cs
,
*
doc
))
mwc
=
0
;
mwc
=
0
;
else
if
(
!
misc_word_char
(
*
doc
)
||
mwc
++
)
else
if
(
!
misc_word_char
(
*
doc
)
||
mwc
++
)
...
@@ -165,7 +165,7 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -165,7 +165,7 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
word
->
len
=
(
uint
)(
doc
-
word
->
pos
)
-
mwc
;
word
->
len
=
(
uint
)(
doc
-
word
->
pos
)
-
mwc
;
if
(
word
->
len
>=
ft_min_word_len
&&
word
->
len
<
ft_max_word_len
&&
if
(
length
>=
ft_min_word_len
&&
length
<
ft_max_word_len
&&
!
is_stopword
(
word
->
pos
,
word
->
len
))
!
is_stopword
(
word
->
pos
,
word
->
len
))
{
{
*
start
=
doc
;
*
start
=
doc
;
...
...
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