lang_numbers_animation.h 809 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "ui/effects/numbers_animation.h"
  9. namespace Lang {
  10. template <typename ResultString>
  11. struct StartReplacements;
  12. template <>
  13. struct StartReplacements<Ui::StringWithNumbers> {
  14. static inline Ui::StringWithNumbers Call(QString &&langString) {
  15. return { std::move(langString) };
  16. }
  17. };
  18. template <typename ResultString>
  19. struct ReplaceTag;
  20. template <>
  21. struct ReplaceTag<Ui::StringWithNumbers> {
  22. static Ui::StringWithNumbers Call(
  23. Ui::StringWithNumbers &&original,
  24. ushort tag,
  25. const Ui::StringWithNumbers &replacement);
  26. };
  27. } // namespace Lang