3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Removed at() method from RTLIL::IdString

This commit is contained in:
Clifford Wolf 2014-08-02 19:08:02 +02:00
parent 04727c7e0f
commit 8e7361f128
3 changed files with 7 additions and 8 deletions

View file

@ -185,12 +185,11 @@ namespace RTLIL
bool operator==(const char *rhs) const { return str() == rhs; }
bool operator!=(const char *rhs) const { return str() != rhs; }
char at(size_t i) const {
return c_str()[i];
}
char operator[](size_t i) const {
return c_str()[i];
const char *p = c_str();
for (; i != 0; i--, p++)
log_assert(*p != 0);
return *p;
}
std::string substr(size_t pos = 0, size_t len = std::string::npos) const {