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 }
152 }
154 // Set the locale according to the terminal's environment
168 }
169 // std::cout << s->toPlainText() << std::endl;
170 // std::cout << std::endl << std::endl;
178 }
179 // std::cout << s->toString() << std::endl;
180 // std::cout << in.tellg() << " " << in.eof() << std::endl;
182 // odc::TypePath path;
183 // odc::ContainerModel(0).getTypePath(&path);
184 // std::cout << path.toString() << std::endl;
186 }