Skip to content
Snippets Groups Projects
Commit fdd1797f authored by Odilitime's avatar Odilitime
Browse files

make xcode happy with doxygen

parent 1df32008
No related branches found
No related tags found
No related merge requests found
#include "StringUtils.h"
#include <iostream>
/**
* get an extension from a filename
* @param a filename string
* @param fileName a filename string
* @return '' or a string with the found extension
*/
std::string getFilenameExtension(std::string const& fileName) {
auto dotPos = fileName.find_last_of('.');
if (dotPos != std::string::npos && dotPos + 1 != std::string::npos) {
//std::cout << "StringUtils::getFilenameExtension - " << fileName.substr(dotPos + 1) << std::endl;
return fileName.substr(dotPos + 1);
}
return "";
......@@ -15,7 +17,7 @@ std::string getFilenameExtension(std::string const& fileName) {
/**
* get an document from a url
* @param url string
* @param url url string
* @return '' or a string with the found document
*/
const std::string getDocumentFromURL(const std::string &url) {
......@@ -33,7 +35,7 @@ const std::string getDocumentFromURL(const std::string &url) {
/**
* get host from a url
* @param url string
* @param url url string
* @return '' or a string with the found host
*/
const std::string getHostFromURL(const std::string &url) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment