]> git.saurik.com Git - apt.git/commit - apt-pkg/contrib/string_view.h
return correct position in APT::StringView::(r)find
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 15 Jan 2016 14:57:32 +0000 (15:57 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 15 Jan 2016 17:19:16 +0000 (18:19 +0100)
commit9b2845e1691b5587d731c3dae9f695ca2db0be1a
tree57cdbc9c5176b41252dd23413d466b7b2f98a43d
parentc987dff466fcb80278851df212f86cfce86ee9bc
return correct position in APT::StringView::(r)find

The position returned is supposed to be the position of the character
counted from the start of the string, but if we used the substr calling
overloads the skipped over prefix wasn't considered. The pos parameter
of rfind had also the wrong semantic.
apt-pkg/contrib/string_view.h