85 |
|
KeyType reversedKeys = keys; |
86 |
|
std::reverse(reversedKeys.begin(), reversedKeys.end()); |
87 |
|
|
88 |
< |
i = data_.find(keys); |
88 |
> |
i = data_.find(reversedKeys); |
89 |
|
if (i != data_.end()) { |
90 |
|
return (i->second).second; |
91 |
|
} else { |
105 |
|
MapTypeIterator i; |
106 |
|
std::vector<ValueType> foundTypes; |
107 |
|
|
108 |
< |
while (replaceWithWildCard(iterCont, keys, replacedKey, wildCard)) { |
108 |
> |
while (replaceWithWildCard(iterCont, keys, replacedKey, wildCard)) { |
109 |
|
i = data_.find(replacedKey); |
110 |
|
if (i != data_.end()) { |
111 |
|
foundTypes.push_back(i->second); |
117 |
|
std::reverse(reversedKeys.begin(), reversedKeys.end()); |
118 |
|
|
119 |
|
//if the reversedKeys is the same as keys, just skip it |
120 |
< |
if (reversedKeys == keys) { |
120 |
> |
if (reversedKeys != keys) { |
121 |
|
|
122 |
|
|
123 |
|
//empty the iterator container |
124 |
|
iterCont.clear(); |
125 |
|
|
126 |
< |
while (replaceWithWildCard(iterCont, keys, replacedKey, wildCard)) { |
126 |
> |
while (replaceWithWildCard(iterCont, reversedKeys, replacedKey, wildCard)) { |
127 |
|
i = data_.find(replacedKey); |
128 |
|
if (i != data_.end()) { |
129 |
|
foundTypes.push_back(i->second); |