| # | Line 1 | Line 1 | using namespace std; | |
|---|---|---|
| 1 | #include "utils/StringUtils.hpp" | |
| 2 | ||
| 3 | using namespace std; | |
| 4 | – | using namespace oopse; |
| 4 | ||
| 5 | + | namespace oopse { |
| 6 | string UpperCase(const string& S) { | |
| 7 | string uc = S; | |
| 8 | unsigned int n = uc.size(); | |
| # | Line 138 | Line 138 | int isEndLine(char *line) { | |
| 138 | ||
| 139 | return 0; | |
| 140 | } | |
| 141 | + | |
| 142 | + | |
| 143 | + | std::string getPrefix(const std::string& str) { |
| 144 | + | return str.substr(0, str.rfind('.')); |
| 145 | + | } |
| 146 | + | |
| 147 | + | std::string getSuffix(const std::string& str) { |
| 148 | + | return str.substr(0, str.find('.')); |
| 149 | + | } |
| 150 | + | |
| 151 | + | } |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |