| # | Line 139 | Line 139 | int isEndLine(char *line) { | |
|---|---|---|
| 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 |