Lines Matching refs:string
70 static string g_strProductKey;
71 static string g_strReportServer;
73 static string g_buildid;
74 static string g_strDefaultLanguage;
75 static string g_strXMLFileName;
76 static string g_strPStackFileName;
77 static string g_strChecksumFileName;
78 static string g_strProgramDir;
96 static string getprogramdir() in getprogramdir()
124 static string trim_string( const string& rString ) in trim_string()
126 string temp = rString; in trim_string()
131 string::size_type len = temp.length(); in trim_string()
142 static string xml_encode( const string &rString ) in xml_encode()
144 string temp = rString; in xml_encode()
145 string::size_type pos = 0; in xml_encode()
150 for( pos = 0; (pos = temp.find( '&', pos )) != string::npos; pos += 4 ) in xml_encode()
153 for( pos = 0; (pos = temp.find( '<', pos )) != string::npos; pos += 4 ) in xml_encode()
156 for( pos = 0; (pos = temp.find( '>', pos )) != string::npos; pos += 4 ) in xml_encode()
181 bool write_report( const hash_map< string, string >& rSettings ) in write_report() argument
248 bool write_description( const hash_map< string, string >& rSettings ) in write_description()
266 static void printSettings( const hash_map<string,string>& rSettings ) argument
269 … for( hash_map<string,string>::const_iterator it = rSettings.begin(); it != rSettings.end(); ++it )
276 bool save_crash_report( const string& rFileName, const hash_map< string, string >& /*rSettings*/ ) in save_crash_report() argument
492 bool send_crash_report( const hash_map< string, string >& rSettings ) in send_crash_report() argument
537 static bool append_file( const char *filename, string& rString ) in append_file()
556 string crash_get_details( const hash_map< string, string >& rSettings ) in crash_get_details() argument
558 string aRet; in crash_get_details()
586 string aDir = szCanonicProgPath; in setup_program_dir()
590 assert( pos != string::npos ); in setup_program_dir()
671 static bool read_line( FILE *fp, string& rLine ) in read_line()
676 string line; in read_line()
698 static string get_script_string( const char *pFileName, const char *pKeyName ) in get_script_string()
701 string retValue; in get_script_string()
705 string line; in get_script_string()
706 string section; in get_script_string()
713 string::size_type iEqualSign = line.find( '=', 0 ); in get_script_string()
715 if ( iEqualSign != string::npos ) in get_script_string()
717 string keyname = line.substr( 0, iEqualSign ); in get_script_string()
720 string value = line.substr( iEqualSign + 1, string::npos ); in get_script_string()
727 string::size_type iQuotes = value.find( '"', 0 ); in get_script_string()
729 if ( iQuotes != string::npos ) in get_script_string()
747 static string get_profile_string( const char *pFileName, const char *pSectionName, const char *pKey… in get_profile_string()
750 string retValue = pDefault ? pDefault : ""; in get_profile_string()
754 string line; in get_profile_string()
755 string section; in get_profile_string()
764 string::size_type end = line.find( ']', 0 ); in get_profile_string()
766 if ( string::npos != end ) in get_profile_string()
772 string::size_type iEqualSign = line.find( '=', 0 ); in get_profile_string()
774 if ( iEqualSign != string::npos ) in get_profile_string()
776 string keyname = line.substr( 0, iEqualSign ); in get_profile_string()
779 string value = line.substr( iEqualSign + 1, string::npos ); in get_profile_string()
800 static string get_environment_string( const char *pEnvName ) in get_environment_string()
810 static string read_from_file( const string& rFileName ) in read_from_file()
812 string content; in read_from_file()
842 g_strXMLFileName += string(XMLFILE); in load_crash_data()
846 g_strChecksumFileName += string(CHKFILE); in load_crash_data()
852 string sFile = get_home_dir(); in write_crash_data()
855 sFile += string(XMLFILE); in write_crash_data()
875 sFile += string(CHKFILE); in write_crash_data()
895 sFile += string(LCKFILE); in write_crash_data()
910 static bool write_settings( const hash_map< string, string >& rSettings )
913 string sRCFile = get_home_dir();
916 sRCFile += string(RCFILE);
935 static void read_settings( hash_map< string, string >& rSettings ) in read_settings() argument
937 string sRCFile = get_home_dir(); in read_settings()
940 sRCFile += string(RCFILE); in read_settings()
951 static void read_settings_from_environment( hash_map< string, string >& rSettings ) in read_settings_from_environment() argument
953 string strEnv; in read_settings_from_environment()
991 string productkey = get_profile_string( "bootstraprc", "Bootstrap", "ProductKey" ); in setup_version()
997 static string productname; in setup_version()
998 static string productversion; in setup_version()
999 string::size_type iSpace = productkey.find( ' ', 0 ); in setup_version()
1001 if ( string::npos != iSpace ) in setup_version()
1004 productversion = productkey.substr( iSpace + 1, string::npos ); in setup_version()
1022 string strReportPort = get_profile_string( "bootstraprc", "ErrorReport", "ErrorReportPort", "80" ); in setup_version()
1070 hash_map< string, string > aDialogSettings; in main()
1079 hash_map< string, string > aDialogSettings; in main()
1087 string sPreviewFile = get_home_dir(); in main()
1089 sPreviewFile += string(PRVFILE); in main()