Libs/Utils/StringUtils.h
Namespaces
Name |
---|
shapeworks |
Classes
Name | |
---|---|
class | shapeworks::StringUtils String utility functions. |
Source code
#pragma once
#include <string>
#include <vector>
namespace shapeworks {
class StringUtils {
public:
static std::string removeExtension(std::string const& filename);
static std::string getPath(std::string const& filename);
static std::string getFilename(std::string const& pathname);
static std::string getBaseFilenameWithoutExtension(std::string const& pathname);
static std::string toLower(std::string s);
static bool hasSuffix(std::string const& filename, std::string const& suffix);
static std::vector<std::string> getFileNamesFromPaths(const std::vector<std::string>& paths);
static std::string getFileNameWithoutExtension(std::string path);
};
} // namespace shapeworks
Updated on 2022-03-31 at 09:51:19 -0600