consolidate all repos to one for archive
This commit is contained in:
24
semester_2/programiranje_2/naloga0302/TextUtility.h
Normal file
24
semester_2/programiranje_2/naloga0302/TextUtility.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef NALOGA0302_TEXTUTILITY_H
|
||||
#define NALOGA0302_TEXTUTILITY_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class TextUtility {
|
||||
private:
|
||||
TextUtility() = default;
|
||||
|
||||
public:
|
||||
static std::string capitalize(const std::string &str);
|
||||
|
||||
static std::string toUpperCase(const std::string &str);
|
||||
|
||||
static bool isNumeric(const std::string &str);
|
||||
|
||||
static int contains(const std::string &str, const std::string &substr);
|
||||
|
||||
static std::string addSpaces(const std::string &str);
|
||||
|
||||
static std::string removeDuplicatedSpaces(const std::string &str);
|
||||
};
|
||||
|
||||
#endif //NALOGA0302_TEXTUTILITY_H
|
||||
Reference in New Issue
Block a user