e6e174899125370fffc9d2bb0ea337e972f3dd56
8 };
15 }
18 }
19 };
34 }
35 }
41 }
42 }
43 };
57 }
59 }
64 }
67 }
70 }
73 }
76 }
78 std::string str = convert((char *)piece->getBuffer(), piece->size() + 1, (char *)"ISO-8859-1", 1);
80 }
84 }
86 /**
87 * Convert an input character buffer in the given encoding to the
88 * locale's encoding.
89 */
91 // Convert from the input encoding to the locale's encoding
94 // Handle errors by throwing a readable message
99 }
101 // Assume at most 4 bytes per character are needed
104 // Allocate the output buffer
108 // Perform conversion
114 }
116 // Free the iconv state
119 // Copy result into a std::string
123 // Convert newlines
126 }
129 }
130 };
141 }
144 }
146 }
147 }
150 // Set the locale according to the terminal's environment
163 }
170 }
171 // std::cout << s->toPlainText() << std::endl;
172 // std::cout << std::endl << std::endl;
176 }
184 }
185 // std::cout << s->toString() << std::endl;
186 // std::cout << in.tellg() << " " << in.eof() << std::endl;
188 // odc::TypePath path;
189 // odc::ContainerModel(0).getTypePath(&path);
190 // std::cout << path.toString() << std::endl;
192 }