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

Method SetLabel

deps/tesseract/cube/char_samp.cpp:71–79  ·  view source on GitHub ↗

set a the string label using a UTF encoded string

Source from the content-addressed store, hash-verified

69
70// set a the string label using a UTF encoded string
71void CharSamp::SetLabel(string str) {
72 if (label32_ != NULL) {
73 delete []label32_;
74 label32_ = NULL;
75 }
76 string_32 str32;
77 CubeUtils::UTF8ToUTF32(str.c_str(), &str32);
78 SetLabel(reinterpret_cast<const char_32 *>(str32.c_str()));
79}
80
81// creates a CharSamp object from file
82CharSamp *CharSamp::FromCharDumpFile(CachedFile *fp) {

Callers 4

ScaleMethod · 0.45
CropMethod · 0.45
CloneMethod · 0.45
SplitByNodeMethod · 0.45

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected