Go to the source code of this file.
◆ make_pseudo_word()
Definition at line 35 of file werdit.cpp.
37 C_BLOB_LIST new_blobs;
38 C_BLOB_IT new_blob_it = &new_blobs;
40 for (
WERD_RES* word_res = pr_it.
word(); word_res !=
nullptr;
41 word_res = pr_it.forward()) {
42 WERD* word = word_res->word;
45 for (blob_it.mark_cycle_pt();
46 !blob_it.cycled_list(); blob_it.forward()) {
47 C_BLOB* blob = blob_it.data();
52 if (!new_blobs.empty()) {
53 WERD* pseudo_word =
new WERD(&new_blobs, 1,
nullptr);
54 word_res = pr_it.InsertSimpleCloneWord(*word_res, pseudo_word);
TBOX bounding_box() const
C_BLOB_LIST * cblob_list()
bool overlap(const TBOX &box) const
TBOX bounding_box() const
static C_BLOB * deep_copy(const C_BLOB *src)