add IdString::isPublic()

This commit is contained in:
N. Engelhardt 2020-09-03 17:37:58 +02:00
parent c66d1dfad1
commit 4af04be0b7
1 changed files with 2 additions and 0 deletions

View File

@ -375,6 +375,8 @@ namespace RTLIL
bool in(const char *rhs) const { return *this == rhs; }
bool in(const std::string &rhs) const { return *this == rhs; }
bool in(const pool<IdString> &rhs) const { return rhs.count(*this) != 0; }
bool isPublic() { return begins_with("\\"); }
};
namespace ID {