Logo Search packages:      
Sourcecode: ardour version File versions

std::string Glib::shell_quote ( const std::string &  unquoted_string  ) 

Quotes a string so that the shell (/bin/sh) will interpret the quoted string to mean unquoted_string. If you pass a filename to the shell, for example, you should first quote it with this function. The quoting style used is undefined (single or double quotes may be used).

Parameters:
unquoted_string A literal string.
Returns:
A quoted string.

Definition at line 48 of file shell.cc.

{
  const ScopedPtr<char> buf (g_shell_quote(unquoted_string.c_str()));
  return std::string(buf.get());
}


Generated by  Doxygen 1.6.0   Back to index