| 104 | } |
| 105 | |
| 106 | String String::removeCharacters(const String& characters) const { |
| 107 | std::u32string result = string_; |
| 108 | auto filter = [&characters](char32_t c) { return characters.find(c) != std::u32string::npos; }; |
| 109 | result.erase(std::remove_if(result.begin(), result.end(), filter), result.end()); |
| 110 | return result; |
| 111 | } |
| 112 | |
| 113 | String String::removeEmojiVariations() const { |
| 114 | std::u32string result = string_; |
no test coverage detected