#include "pageres.h"
#include "params.h"
#include "notdll.h"
Go to the source code of this file.
Function Documentation
Definition at line 879 of file fixspace.cpp.
{
tprintf(
"Blob count: %d (word); %d/%d (rebuild word)\n",
if (show_map_detail) {
}
}
tprintf(
"Done flag: %s\n\n", word->
done ?
"TRUE" :
"FALSE");
}
void initialise_search |
( |
WERD_RES_LIST & |
src_list, |
|
|
WERD_RES_LIST & |
new_list |
|
) |
| |
Definition at line 178 of file fixspace.cpp.
{
WERD_RES_IT src_it(&src_list);
WERD_RES_IT new_it(&new_list);
for (src_it.mark_cycle_pt(); !src_it.cycled_list(); src_it.forward()) {
src_wd = src_it.data();
new_it.add_after_then_move(new_wd);
}
}
}
void transform_to_next_perm |
( |
WERD_RES_LIST & |
words | ) |
|
Definition at line 373 of file fixspace.cpp.
{
WERD_RES_IT word_it(&words);
WERD_RES_IT prev_word_it(&words);
for (word_it.mark_cycle_pt(); !word_it.cycled_list(); word_it.forward()) {
word = word_it.data();
gap = box.
left() - prev_right;
if (gap < min_gap)
min_gap = gap;
}
prev_right = box.
right();
}
}
word_it.set_to_list(&words);
for (; (prev_right == -
MAX_INT16) || !word_it.at_first();
word_it.forward()) {
word = word_it.data();
gap = box.
left() - prev_right;
if (gap <= min_gap) {
prev_word = prev_word_it.data();
combo = prev_word;
} else {
*copy_word = *(prev_word->
word);
prev_word_it.add_before_then_move(combo);
}
delete word_it.extract();
} else {
}
} else {
prev_word_it = word_it;
}
}
prev_right = box.
right();
}
}
} else {
words.clear();
}
}