Tesseract  3.02
tesseract::TESS_CHAR Struct Reference
Inheritance diagram for tesseract::TESS_CHAR:
ELIST_LINK

List of all members.

Public Member Functions

 TESS_CHAR (float _cost, const char *repr, int len=-1)
 TESS_CHAR ()
 ~TESS_CHAR ()

Public Attributes

char * unicode_repr
int length
float cost
TBOX box

Detailed Description

Definition at line 1941 of file baseapi.cpp.


Constructor & Destructor Documentation

tesseract::TESS_CHAR::TESS_CHAR ( float  _cost,
const char *  repr,
int  len = -1 
) [inline]

Definition at line 1947 of file baseapi.cpp.

                                                         : cost(_cost) {
    length = (len == -1 ? strlen(repr) : len);
    unicode_repr = new char[length + 1];
    strncpy(unicode_repr, repr, length);
  }
tesseract::TESS_CHAR::TESS_CHAR ( ) [inline]

Definition at line 1953 of file baseapi.cpp.

              {  // Satisfies ELISTIZE.
  }
tesseract::TESS_CHAR::~TESS_CHAR ( ) [inline]

Definition at line 1955 of file baseapi.cpp.

               {
    delete [] unicode_repr;
  }

Member Data Documentation

Definition at line 1945 of file baseapi.cpp.

Definition at line 1944 of file baseapi.cpp.

Definition at line 1943 of file baseapi.cpp.

Definition at line 1942 of file baseapi.cpp.


The documentation for this struct was generated from the following file: