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

Method removeEmojiVariations

visage_utils/string_utils.cpp:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 String String::removeEmojiVariations() const {
114 std::u32string result = string_;
115 auto filter = [](char32_t c) { return (c & 0xfffffff0) == 0xfe00; };
116 result.erase(std::remove_if(result.begin(), result.end(), filter), result.end());
117 return result;
118 }
119
120 int String::naturalCompare(const std::u32string& a, const std::u32string& b) {
121 size_t i = 0;

Callers 1

insertTextAtCaretMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected