File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ namespace dotnamecpp::v1 {
2424
2525 std::unique_ptr<dotnamecpp::emoji::Emoji> emoji_;
2626
27+ // Public Emoji methods
28+ [[nodiscard]] std::string getRandomEmoji () const ;
29+ [[nodiscard]] std::string getEmoji () const ;
30+ [[nodiscard]] std::string getEmoji (char32_t *code, size_t totalCodePoints) const ;
31+ [[nodiscard]] std::string getEmoji (int32_t *code, size_t totalCodePoints) const ;
32+
2733 private:
2834 bool isInitialized_{false };
2935 static constexpr const char *libName_ = " EmojiModuleLib v" EMOJIMODULELIB_VERSION;
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ namespace dotnamecpp::v1 {
1414
1515 emoji_ = std::make_unique<dotnamecpp::emoji::Emoji>(utilsComponents);
1616 emoji_->emojiChainTest <false >();
17- logger_->infoStream () << " Static emoji: " << emoji_->getEmoji () << " , Random emoji: "
18- << emoji_->getRandomEmoji ();
17+ logger_->infoStream () << " Static emoji: " << emoji_->getEmoji ()
18+ << " , Random emoji: " << emoji_->getRandomEmoji ();
1919
2020 logger_->infoStream () << libName_ << " initialized ..." ;
2121 isInitialized_ = true ;
@@ -36,4 +36,13 @@ namespace dotnamecpp::v1 {
3636 return assetManager_;
3737 }
3838
39+ std::string EmojiModuleLib::getRandomEmoji () const { return emoji_->getRandomEmoji (); }
40+ std::string EmojiModuleLib::getEmoji () const { return emoji_->getEmoji (); }
41+ std::string EmojiModuleLib::getEmoji (char32_t *code, size_t totalCodePoints) const {
42+ return emoji_->getEmoji (code, totalCodePoints);
43+ }
44+ std::string EmojiModuleLib::getEmoji (int32_t *code, size_t totalCodePoints) const {
45+ return emoji_->getEmoji (code, totalCodePoints);
46+ }
47+
3948} // namespace dotnamecpp::v1
You can’t perform that action at this time.
0 commit comments