35 STRING wordstr_box_str(
"");
36 int left = 0, top = 0, right = 0, bottom = 0;
38 bool first_line =
true;
49 wordstr_box_str.add_str_int(
"\n\t ", right + 1);
51 wordstr_box_str.add_str_int(
" ", right + 5);
53 wordstr_box_str.add_str_int(
" ", page_number);
54 wordstr_box_str +=
"\n";
59 res_it->BoundingBox(
RIL_TEXTLINE, &left, &top, &right, &bottom);
60 wordstr_box_str.add_str_int(
"WordStr ", left);
62 wordstr_box_str.add_str_int(
" ", right);
64 wordstr_box_str.add_str_int(
" ", page_number);
65 wordstr_box_str +=
" #";
69 std::unique_ptr<const char[]>(res_it->GetUTF8Text(
RIL_WORD)).get();
70 wordstr_box_str +=
" ";
75 if (left != 0 && top != 0 && right != 0 && bottom != 0) {
76 wordstr_box_str.add_str_int(
"\n\t ", right + 1);
78 wordstr_box_str.add_str_int(
" ", right + 5);
80 wordstr_box_str.add_str_int(
" ", page_number);
81 wordstr_box_str +=
"\n";
83 char* ret =
new char[wordstr_box_str.length() + 1];
84 strcpy(ret, wordstr_box_str.c_str());
96 const std::unique_ptr<const char[]> wordstrbox(
98 if (wordstrbox ==
nullptr)
return false;