| 108 | } |
| 109 | |
| 110 | bool isSurroundedBy(const std::string& string, const std::string& bet) |
| 111 | { |
| 112 | return (string.substr(0, bet.size()) == bet |
| 113 | && string.substr(string.size() - bet.size(), bet.size()) == bet); |
| 114 | } |
| 115 | |
| 116 | std::string getRandomKey(const std::string& set, const int len) |
| 117 | { |