|
|
|
@ -141,7 +141,7 @@ namespace epee
|
|
|
|
|
result.reserve(count / 2);
|
|
|
|
|
|
|
|
|
|
// the data to work with (std::string is always null-terminated)
|
|
|
|
|
auto data = src.data();
|
|
|
|
|
auto data = src.begin();
|
|
|
|
|
|
|
|
|
|
// convert a single hex character to an unsigned integer
|
|
|
|
|
auto char_to_int = [](const char *input) {
|
|
|
|
@ -167,9 +167,9 @@ namespace epee
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// keep going until we reach the end
|
|
|
|
|
while (data[0] != '\0') {
|
|
|
|
|
while (data != src.end()) {
|
|
|
|
|
// skip unwanted characters
|
|
|
|
|
if (!include(data[0])) {
|
|
|
|
|
if (!include(*data)) {
|
|
|
|
|
++data;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|