MCPcopy Create free account
hub / github.com/VitalAudio/visage / removeCharacters

Method removeCharacters

visage_utils/string_utils.cpp:106–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers 2

insertTextAtCaretMethod · 0.80

Calls 3

findMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected