FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
std::string URI::filename ( ) const

Returns the part of the path after the last /

Since
1.4b1

Definition at line 172 of file URI.cpp.

172  {
173  if (path.empty() || path[path.size()-1] == '/') return string();
174  size_t loc = path.rfind("/");
175  if (loc == std::string::npos) return path;
176  return path.substr(loc+1);
177 }