You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
646B

  1. #pragma once
  2. #include <vector>
  3. #include <common.hpp>
  4. namespace rack {
  5. namespace tag {
  6. /** List of tags and their aliases.
  7. The first alias of each tag `tag[tagId][0]` is the "canonical" alias.
  8. It is guaranteed to exist and should be used as the human-readable form.
  9. This list is manually alphabetized by the canonical alias.
  10. */
  11. extern const std::vector<std::vector<std::string>> tagAliases;
  12. /** Searches for a tag ID.
  13. Searches tag aliases.
  14. Case-insensitive.
  15. Returns -1 if not found.
  16. */
  17. int findId(const std::string& tag);
  18. /** Returns the main tag name by tag ID. */
  19. std::string getTag(int tagId);
  20. } // namespace tag
  21. } // namespace rack