Пример #1
0
        private static IEnumerable <string> EmojiDescriptionLines()
        {
            using (var sr = new CompressedResourceStream("emoji-test.txt.gz"))
            {
                foreach (var line in sr.ReadToEnd().Split('\r', '\n'))
                {
                    yield return(line);

                    // Append these extra Microsoft emojis after 😾 E2.0 pouting cat
                    if (line.StartsWith("1F63E  "))
                    {
                        yield return("1F431 200D 1F3CD ; fully-qualified # 🐱\u200d🏍 stunt cat");

                        yield return("1F431 200D 1F453 ; fully-qualified # 🐱\u200d👓 hipster cat");

                        yield return("1F431 200D 1F680 ; fully-qualified # 🐱\u200d🚀 astro cat");

                        yield return("1F431 200D 1F464 ; fully-qualified # 🐱\u200d👤 ninja cat");

                        yield return("1F431 200D 1F409 ; fully-qualified # 🐱\u200d🐉 dino cat");

                        yield return("1F431 200D 1F4BB ; fully-qualified # 🐱\u200d💻 hacker cat");
                    }
                }
            }
        }
Пример #2
0
        private static IEnumerable <string> EmojiDescriptionLines()
        {
            using (var sr = new CompressedResourceStream("emoji-test.txt.gz"))
            {
                foreach (var line in sr.ReadToEnd().Split('\r', '\n'))
                {
                    yield return(line);

                    // Hack to support those extra Microsoft emojis
                    if (line.EndsWith("🐱 cat face"))
                    {
                        yield return("1F431 200D 1F3CD ; fully-qualified # 🐱‍🏍 stunt cat");

                        yield return("1F431 200D 1F453 ; fully-qualified # 🐱‍👓 hipster cat");

                        yield return("1F431 200D 1F680 ; fully-qualified # 🐱‍🚀 astro cat");

                        yield return("1F431 200D 1F464 ; fully-qualified # 🐱‍👤 ninja cat");

                        yield return("1F431 200D 1F409 ; fully-qualified # 🐱‍🐉 dino cat");

                        yield return("1F431 200D 1F4BB ; fully-qualified # 🐱‍💻 hacker cat");
                    }
                }
            }
        }