Revision 0a32fd63
Added by david.sorber over 2 years ago
| src/CatalogItem.cc | ||
|---|---|---|
|
#include <cstring>
|
||
|
|
||
|
#include "CatalogItem.h"
|
||
|
|
||
|
CatalogItem::CatalogItem(const std::string& key, const std::string& value)
|
||
| ... | ... | |
|
m_keyLower.at(idx) = (m_keyLower.at(idx) | 32);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Zero out value buffer and then copy the value into the buffer
|
||
|
std::memset(m_valueBuffer, 0, VALUE_BUFFER_SIZE);
|
||
|
std::memcpy(m_valueBuffer, m_value.data(), m_value.size());
|
||
|
}
|
||
|
|
||
|
CatalogItem::~CatalogItem()
|
||
Improved filtering and added parsing input from a plaintext file.