Better variant detection for nicehash.com and minergate.com.
This commit is contained in:
parent
de6ee749fe
commit
b719bbfefc
3 changed files with 79 additions and 30 deletions
|
@ -72,6 +72,12 @@ public:
|
|||
}
|
||||
|
||||
|
||||
inline bool contains(const char *str) const
|
||||
{
|
||||
return strstr(m_data, str) != nullptr;
|
||||
}
|
||||
|
||||
|
||||
inline bool isNull() const { return m_data == nullptr; }
|
||||
inline const char *data() const { return m_data; }
|
||||
inline size_t size() const { return m_data == nullptr ? 0 : strlen(m_data); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue