27 #ifndef MLN_DEBUG_PUT_WORD_HH
28 # define MLN_DEBUG_PUT_WORD_HH
35 # include <mln/core/image/image2d.hh>
51 const std::string& word);
54 # ifndef MLN_INCLUDE_ONLY
59 const std::string& word)
61 mln_precondition(word.length() != 0);
62 mln_precondition(inout.has(word_start));
66 word_end.last_coord() =
static_cast<def::coord>(word_end.last_coord() + word.length() - 1);
68 if (! inout.has(word_end))
69 mln_trace_warning(
"Cannot write text outside the image domain");
71 const unsigned n = word.length();
73 for (
unsigned i = 0; i < n && inout.has(p); ++i)
80 # endif // ! MLN_INCLUDE_ONLY
87 #endif // ! MLN_DEBUG_PUT_WORD_HH