VCV Rack API v2
Loading...
Searching...
No Matches
rack::tag Namespace Reference

Tags describing the function(s) of modules. More...

Functions

int findId (const std::string &tag)
 Searches for a tag ID.
 
std::string getTag (int tagId)
 Returns the main tag name by tag ID.
 

Variables

const std::vector< std::vector< std::string > > tagAliases
 List of tags and their aliases.
 

Detailed Description

Tags describing the function(s) of modules.

Function Documentation

◆ findId()

int rack::tag::findId ( const std::string & tag)

Searches for a tag ID.

Searches tag aliases. Case-insensitive. Returns -1 if not found.

◆ getTag()

std::string rack::tag::getTag ( int tagId)

Returns the main tag name by tag ID.

Variable Documentation

◆ tagAliases

const std::vector<std::vector<std::string> > rack::tag::tagAliases
extern

List of tags and their aliases.

The first alias of each tag tag[tagId][0] is the "canonical" alias. It is guaranteed to exist and should be used as the human-readable form.

This list is manually alphabetized by the canonical alias.