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

Function ParagraphJustificationToString

deps/tesseract/ccstruct/ocrpara.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using tesseract::JUSTIFICATION_UNKNOWN;
31
32static STRING ParagraphJustificationToString(
33 tesseract::ParagraphJustification justification) {
34 switch (justification) {
35 case JUSTIFICATION_LEFT:
36 return "LEFT";
37 case JUSTIFICATION_RIGHT:
38 return "RIGHT";
39 case JUSTIFICATION_CENTER:
40 return "CENTER";
41 default:
42 return "UNKNOWN";
43 }
44}
45
46bool ParagraphModel::ValidFirstLine(int lmargin, int lindent,
47 int rindent, int rmargin) const {

Callers 1

ToStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected