diff options
author | gatecat <gatecat@ds0.me> | 2022-02-20 18:26:17 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-02-20 18:26:17 +0000 |
commit | 75c45dbef158a7f8867e5fc9565cb14a5f06ab2a (patch) | |
tree | eeee4e925471976207a61458930d2d0c392fe2a7 | |
parent | 347ba3afb3f541edc594c8bc276cce481c7a7e03 (diff) | |
download | nextpnr-75c45dbef158a7f8867e5fc9565cb14a5f06ab2a.tar.gz nextpnr-75c45dbef158a7f8867e5fc9565cb14a5f06ab2a.tar.bz2 nextpnr-75c45dbef158a7f8867e5fc9565cb14a5f06ab2a.zip |
Add IdStringList::concat overrides taking IdString
Signed-off-by: gatecat <gatecat@ds0.me>
-rw-r--r-- | common/idstringlist.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/idstringlist.h b/common/idstringlist.h index fd57540b..5e462d0e 100644 --- a/common/idstringlist.h +++ b/common/idstringlist.h @@ -67,6 +67,10 @@ struct IdStringList } static IdStringList concat(IdStringList a, IdStringList b); + static IdStringList concat(IdString a, IdString b) { return concat(IdStringList(a), IdStringList(b)); } + static IdStringList concat(IdStringList a, IdString b) { return concat(a, IdStringList(b)); } + static IdStringList concat(IdString a, IdStringList b) { return concat(IdStringList(a), b); } + IdStringList slice(size_t s, size_t e) const; unsigned int hash() const |