Lines Matching refs:std

66std::cout << "Usage: -ulf ulf_file -rc rc_output_file -rct rc_template_file -rch rch_file -rcf rcf…  in ShowUsage()
67 std::cout << "-ulf Name of the ulf file" << std::endl; in ShowUsage()
68 std::cout << "-rc Name of the resulting resource file" << std::endl; in ShowUsage()
69 std::cout << "-rct Name of the resource template file" << std::endl; in ShowUsage()
70 std::cout << "-rch Name of the resource file header" << std::endl; in ShowUsage()
71 std::cout << "-rcf Name of the resource file footer" << std::endl; in ShowUsage()
123 OString get_absolute_file_path(const std::string& file_name) in get_absolute_file_path()
138 std::ios& iostrm, in StreamExceptionsEnabler()
139 std::ios::iostate NewIos = std::ios::failbit | std::ios::badbit) : in StreamExceptionsEnabler()
151 std::ios& m_IoStrm;
152 std::ios::iostate m_OldIos;
155 typedef std::vector<std::string> string_container_t;
167 iso_lang_identifier(const std::string& str) : in iso_lang_identifier()
180 std::string make_std_string() const in make_std_string()
207 std::string make_winrc_unicode_string(const OUString& str) in make_winrc_unicode_string()
209 std::ostringstream oss; in make_winrc_unicode_string()
216 oss << "\\x" << std::hex << (int)*pchr++; in make_winrc_unicode_string()
223 std::string make_winrc_unicode_string(const std::string& str) in make_winrc_unicode_string()
235 typedef std::map<std::string, std::string> replacement_table_t;
236 typedef std::map<std::string, replacement_table_t*> iso_lang_replacement_table_t;
270 void substitute(std::string& Text) in substitute()
280 const std::string& Placeholder, const std::string& Substitute) in add_substitution()
284 prt->insert(std::make_pair(Placeholder, Substitute)); in add_substitution()
291 replacement_table_t* get_replacement_table(const std::string& iso_lang) in get_replacement_table()
301 iso_lang_replacement_table_.insert(std::make_pair(iso_lang, prt)); in get_replacement_table()
315 typedef std::map< unsigned short , std::string , std::less< unsigned short > > shortmap;
346 map[ static_cast<unsigned short>(ltype) ] = std::string( iso_lang.GetBuffer() ); in add_group_entries()
360 void read_ulf_file(const std::string& FileName, Substitutor& Substitutor) in read_ulf_file()
373 std::ifstream in(FileName.c_str()); in read_ulf_file()
374 std::ofstream out(OUStringToOString(tmpfile_sys).getStr()); in read_ulf_file()
389 std::string line; in read_ulf_file()
390 while (std::getline(in, line)) in read_ulf_file()
391 out << line << std::endl; in read_ulf_file()
393 catch (const std::ios::failure&) in read_ulf_file()
411 const std::string& fname, in read_file()
414 std::ifstream file(fname.c_str()); in read_file()
419 std::string line; in read_file()
420 while (std::getline(file, line)) in read_file()
423 catch(const std::ios::failure&) in read_file()
433 void concatenate_files(std::ostream& os, std::istream& is) in concatenate_files()
440 std::string line; in concatenate_files()
441 while (std::getline(is, line)) in concatenate_files()
442 os << line << std::endl; in concatenate_files()
444 catch(const std::ios::failure&) in concatenate_files()
452 bool is_placeholder(const std::string& str) in is_placeholder()
461 std::ostream_iterator<std::string>& ostream_iter, const iso_lang_identifier& iso_lang) in start_language_section()
463 ostream_iter = std::string(); in start_language_section()
465 std::string lang_section("LANGUAGE "); in start_language_section()
482 lang_section += std::string("0x") + std::string(buff); in start_language_section()
484 lang_section += std::string(" , "); in start_language_section()
488 lang_section += std::string("0x") + std::string(buff); in start_language_section()
497 std::ostream& os, const string_container_t& rctmpl, Substitutor& substitutor) in inflate_rc_template_to_file()
504 std::ostream_iterator<std::string> oi(os, "\n"); in inflate_rc_template_to_file()
518 std::istringstream iss(*rct_iter); in inflate_rc_template_to_file()
519 std::string line; in inflate_rc_template_to_file()
523 std::string token; in inflate_rc_template_to_file()
577 std::ofstream rc_file(RC_FILE(cmdline)); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
578 std::ifstream in_header(RC_HEADER(cmdline)); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
583 std::ifstream in_footer(RC_FOOTER(cmdline)); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
586 catch(const std::ios::failure& ex) in SAL_IMPLEMENT_MAIN_WITH_ARGS()
588 std::cout << ex.what() << std::endl; in SAL_IMPLEMENT_MAIN_WITH_ARGS()
590 catch(std::exception& ex) in SAL_IMPLEMENT_MAIN_WITH_ARGS()
592 std::cout << ex.what() << std::endl; in SAL_IMPLEMENT_MAIN_WITH_ARGS()
597 std::cout << "Unexpected error..." << std::endl; in SAL_IMPLEMENT_MAIN_WITH_ARGS()