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.

29 lines
569B

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