using boost::shared_ptr;
-#ifndef CXX_GLOBAL_CSTD
-using std::strcpy;
-using std::strlen;
-using std::strpbrk;
-#endif
-
-using std::endl;
-using std::max;
-using std::string;
-
+using namespace std;
+using namespace lyx::support;
namespace lyx {
-using support::bformat;
-
namespace {
-class LaunchIspell : public support::ForkedProcess {
- typedef support::ForkedProcess ForkedProcess;
+class LaunchIspell : public ForkedProcess
+{
public:
///
LaunchIspell(BufferParams const & p, string const & l,
string const to_iconv_encoding(docstring const & s, string const & encoding)
{
if (lyxrc.isp_use_input_encoding) {
- std::vector<char> const encoded =
+ vector<char> const encoded =
ucs4_to_eightbit(s.data(), s.length(), encoding);
return string(encoded.begin(), encoded.end());
}
docstring const from_iconv_encoding(string const & s, string const & encoding)
{
if (lyxrc.isp_use_input_encoding) {
- std::vector<char_type> const ucs4 =
+ vector<char_type> const ucs4 =
eightbit_to_ucs4(s.data(), s.length(), encoding);
return docstring(ucs4.begin(), ucs4.end());
}