projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a new 'cut' directive to charmaps (.chr files) which specifies that
[idzebra-moved-to-github.git]
/
index
/
extract.c
diff --git
a/index/extract.c
b/index/extract.c
index
9183bbc
..
593c9e8
100644
(file)
--- a/
index/extract.c
+++ b/
index/extract.c
@@
-1,4
+1,4
@@
-/* $Id: extract.c,v 1.156 2004-07-28 08:15:45 adam Exp $
+/* $Id: extract.c,v 1.157 2004-07-28 09:47:41 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
@@
-1655,6
+1655,7
@@
static void extract_add_complete_field (RecWord *p)
while (map && *map && **map == *CHR_SPACE)
{
remain = p->length - (b - p->string);
while (map && *map && **map == *CHR_SPACE)
{
remain = p->length - (b - p->string);
+
if (remain > 0)
map = zebra_maps_input(p->zebra_maps, p->reg_type, &b, remain);
else
if (remain > 0)
map = zebra_maps_input(p->zebra_maps, p->reg_type, &b, remain);
else
@@
-1669,10
+1670,17
@@
static void extract_add_complete_field (RecWord *p)
{
const char *cp = *map;
{
const char *cp = *map;
- if (i >= IT_MAX_WORD)
- break;
- while (i < IT_MAX_WORD && *cp)
- buf[i++] = *(cp++);
+ if (**map == *CHR_CUT)
+ {
+ i = 0;
+ }
+ else
+ {
+ if (i >= IT_MAX_WORD)
+ break;
+ while (i < IT_MAX_WORD && *cp)
+ buf[i++] = *(cp++);
+ }
remain = p->length - (b - p->string);
if (remain > 0)
map = zebra_maps_input (p->zebra_maps, p->reg_type, &b,
remain = p->length - (b - p->string);
if (remain > 0)
map = zebra_maps_input (p->zebra_maps, p->reg_type, &b,