oss_src/zookeeper_util/zookeeper_common.cpp
std::string normalize_path(std::string prefix) {
  boost::algorithm::trim(prefix); 
  if (prefix.length() == 0) return "/";
  else if (prefix[prefix.length() - 1] != '/') return prefix + "/";
  else return prefix;
}
// adds a trailing / to the path name if there is not one already
adds a trailing / to the path name if there is not one already
adds a trailing / to the path name if there is not one already
std::string normalize_path(std::string prefix) {
  boost::algorithm::trim(prefix); 
  if (prefix.length() == 0) return "/";
  else if (prefix[prefix.length() - 1] != '/') return prefix + "/";
  else return prefix;
}
std :: string normalize_path ( std :: string prefix ) { boost :: algorithm :: trim ( prefix ) ; if ( prefix . length ( ) == 0 ) return " " ; else if ( prefix [ prefix . length ( ) - 1 ] != ' ' ) return prefix + " " ; else return prefix ; }
adds a trailing / to the path name if there is not one already
adds a trailing / to the path name if there is not one already