MCPcopy Create free account
hub / github.com/creatale/node-dv / initialise

Method initialise

deps/tesseract/ccstruct/rejctmap.cpp:318–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316
317
318void REJMAP::initialise( //Redefine map
319 inT16 length) {
320 if (ptr != NULL)
321 free_struct (ptr, len * sizeof (REJ), "REJ");
322 len = length;
323 if (len > 0)
324 ptr = (REJ *) memset (alloc_struct (len * sizeof (REJ), "REJ"),
325 0, len * sizeof (REJ));
326 else
327 ptr = NULL;
328}
329
330
331inT16 REJMAP::accept_count() { //How many accepted?

Callers 6

make_reject_mapMethod · 0.80
fix_rep_charMethod · 0.80
recog_wordMethod · 0.80
join_wordsMethod · 0.80
ReplaceBestChoiceMethod · 0.80
FakeClassifyWordMethod · 0.80

Calls 2

free_structFunction · 0.85
alloc_structFunction · 0.85

Tested by

no test coverage detected