~ubuntu-branches/ubuntu/feisty/ncbi-tools6/feisty

« back to all changes in this revision

Viewing changes to api/findrepl.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2006-07-19 23:28:07 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719232807-et3cdmcjgmnyleyx
Tags: 6.1.20060507-3ubuntu1
Re-merge with Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
* RCS Modification History:
45
45
* -------------------------
46
46
* $Log: findrepl.h,v $
 
47
* Revision 6.5  2006/01/04 20:39:41  kans
 
48
* added FindStringsInEntity using finite state machine, general cleanup of code
 
49
*
 
50
* Revision 6.4  2005/12/29 20:54:41  kans
 
51
* FindReplaceInEntity takes callback and userdata
 
52
*
47
53
* Revision 6.3  2003/07/31 20:54:54  kans
48
54
* FindReplaceString does not need do_replace argument
49
55
*
103
109
#define UPDATE_EACH  1  /* send it on each replace */
104
110
#define UPDATE_ONCE  2  /* send once for whole entityID, if any replacements occur */
105
111
 
 
112
typedef void (*FindReplProc) (Uint2 entityID, Uint2 itemID, Uint2 itemtype, Pointer userdata);
 
113
 
106
114
NLM_EXTERN void FindReplaceInEntity (
107
115
  Uint2 entityID,
108
116
  CharPtr find_string,
115
123
  BoolPtr descFilter,
116
124
  BoolPtr featFilter,
117
125
  BoolPtr seqidFilter,
118
 
  Boolean do_seqid_local
 
126
  Boolean do_seqid_local,
 
127
  FindReplProc callback,
 
128
  Pointer userdata
119
129
);
120
130
 
121
131
NLM_EXTERN void FindReplaceString (
126
136
  Boolean whole_word
127
137
);
128
138
 
 
139
NLM_EXTERN void FindStringsInEntity (
 
140
  Uint2 entityID,
 
141
  CharPtr PNTR find_strings,
 
142
  Boolean case_counts,
 
143
  Boolean whole_word,
 
144
  Boolean select_item,
 
145
  Int2 send_update,
 
146
  BoolPtr descFilter,
 
147
  BoolPtr featFilter,
 
148
  BoolPtr seqidFilter,
 
149
  Boolean do_seqid_local,
 
150
  FindReplProc callback,
 
151
  Pointer userdata
 
152
);
 
153
 
129
154
 
130
155
#ifdef __cplusplus
131
156
extern "C" }