Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
417c85ef
Commit
417c85ef
authored
Jun 01, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-made gcc happy - no more warnings
-german "scharfes s" was not handled properly
parent
64e28b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/Splitter.c
...xes/TextIndex/Splitter/ISO_8859_1_Splitter/src/Splitter.c
+10
-9
No files found.
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/Splitter.c
View file @
417c85ef
...
...
@@ -90,10 +90,9 @@
#define UNLESS_ASSIGN(V,E) ASSIGN(V,E) UNLESS(V)
#define UPPERCASE "ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝ"
#define LOWERCASE "abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöùúûüý"
#define DIGITSETC "0123456789-
ß
µ"
#define LOWERCASE "abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöùúûüýß"
#define DIGITSETC "0123456789-µ"
static
PyObject
*
next_word
();
static
unsigned
char
letdig
[
256
];
static
unsigned
char
trtolower
[
256
];
...
...
@@ -107,6 +106,8 @@ typedef struct
int
index
;
}
Splitter
;
static
PyObject
*
next_word
(
Splitter
*
,
char
**
,
char
**
);
//-------------------------------------------------------
...
...
@@ -126,10 +127,10 @@ static int myisspace(int c)
return
isspace
(
c
);
}
static
void
initSplitterTrtabs
()
static
void
initSplitterTrtabs
(
void
)
{
int
i
;
static
initialized
=
0
;
static
in
t
in
itialized
=
0
;
if
(
initialized
)
return
;
initialized
=
1
;
...
...
@@ -146,7 +147,7 @@ static void initSplitterTrtabs()
}
for
(
i
=
0
;
i
<
sizeof
(
DIGITSETC
);
i
++
)
{
letdig
[
DIGITSETC
[
i
]]
=
1
;
letdig
[
(
int
)
DIGITSETC
[
i
]]
=
1
;
}
}
//-------------------------------------------------------
...
...
@@ -532,15 +533,15 @@ static char Splitter_module_documentation[] =
"
\n
"
"for use in an inverted index
\n
"
"
\n
"
"$Id: Splitter.c,v 1.
2 2001/05/30 15:57:34
andreas Exp $
\n
"
"$Id: Splitter.c,v 1.
3 2001/06/01 16:01:32
andreas Exp $
\n
"
;
void
initSplitter
()
initSplitter
(
void
)
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
2
$"
;
char
*
rev
=
"$Revision: 1.
3
$"
;
/* Create the module and add the functions */
initSplitterTrtabs
();
...
...
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