Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
7f70c998
Commit
7f70c998
authored
Aug 22, 2003
by
Per Cederqvist
Browse files
(l2gi_searchsome_reverse): New function.
(l2gi_prev): New function.
parent
7e542b42
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/local-to-global.h
View file @
7f70c998
...
...
@@ -136,4 +136,44 @@ Local_text_no l2gi_end(const L2g_iterator *l2gi);
was created. */
Local_text_no
l2gi_begin
(
const
L2g_iterator
*
l2gi
);
/* ================================================================ */
/*
* Reverse iterator for a Local_to_global.
*
* Usage:
*
* Local_to_global l2g;
* L2g_reverse_iterator l2gi;
*
* for (l2gi_searchall_reverse(&l2gi, &l2g); // Not implemented yet.
* !l2gi.search_ended;
* l2gi_prev(&l2gi))
* {
* use(l2gi.lno, l2gi.tno);
* }
*
* or:
*
* for (l2gi_searchsome_reverse(&l2gi, &l2g, lower_limit, upper_limit);
* !l2gi.search_ended;
* l2gi_prev(&l2gi))
* {
* use(l2gi.lno, l2gi.tno);
* }
*/
/* Create an iterator that will iterate through all existing texts
with a local text number lno such that
begin <= lno < end
starting at end-1 and ending at begin. */
void
l2gi_searchsome_reverse
(
L2g_reverse_iterator
*
l2gi
,
const
Local_to_global
*
l2g
,
Local_text_no
begin
,
Local_text_no
end
);
/* Step the iterator forward, eh, backwards, eh, towards begin. */
void
l2gi_prev
(
L2g_reverse_iterator
*
l2gi
);
#endif
/* LOCAL2GLOBAL_H_INCLUDED */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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