Lines Matching refs:string
40 string const get_config_dir()
45 string daemon_pid;
55 string proc_filename = string("/proc/") + daemon_pid + "/exe";
56 string const exec = op_realpath(proc_filename);
73 string const exec =
74 op_realpath(string("/proc/")
76 string const name = op_basename(exec);
144 string const get_config_filename(string const & filename)
157 string dir = get_config_filename(".oprofile");
178 * format - re-format a string
179 * @param orig string to format
182 * Re-formats a string to fit into a certain width,
185 * Returns the formatted string
187 string const format(string const & orig, uint const maxlen)
189 string text(orig);
192 vector<string> lines;
194 string oline;
195 string line;
204 string s;
205 string word;
220 string ret;
222 for(vector<string>::const_iterator it = lines.begin(); it != lines.end(); ++it)
240 int do_exec_command(string const & cmd, vector<string> const & args)
246 for (vector<string>::const_iterator cit = args.begin();
252 string(
267 string error = reader.error_str() + "\n";
269 string cmdline = cmd;
270 for (vector<string>::const_iterator cit = args.begin();
289 * an empty string if the selection was cancelled.
291 string const do_open_file_or_dir(string const & base_dir, bool dir_only)
304 return string();
310 * verify_argument - check string for potentially dangerous characters
312 * This function returns false if the string contains dangerous shell
323 bool verify_argument(string const & str)
328 != string::npos)