Logo Search packages:      
Sourcecode: poco version File versions  Download package

std::string Poco::Path::getBaseName (  )  const

Sets the basename part of the filename and does not change the extension.

Definition at line 529 of file Path.cpp.

Referenced by Poco::Util::Application::init(), Poco::Util::Application::loadConfiguration(), makeDirectory(), and setExtension().

{
      std::string::size_type pos = _name.rfind('.');
      if (pos != std::string::npos)
            return _name.substr(0, pos);
      else
            return _name;
}


Generated by  Doxygen 1.6.0   Back to index