Cleanup comment

... after commit e4ff847fe0 already
made it a template.

Change-Id: Ia433150cb1f9909906ceb986c50d4334cc2b1897
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132806
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski
2022-04-11 10:13:16 +03:00
parent 1e859921ff
commit c7fb93764b

View File

@@ -38,9 +38,7 @@ inline int compareToIgnoreAsciiCase(std::u16string_view s1, std::u16string_view
};
// Similar to OString::getToken, returning the first token of a std::string_view, starting at a
// given position (and if needed, it can be turned into a template to also cover std::u16string_view
// etc., or extended to return the n'th token instead of just the first, or support an initial
// position of npos):
// given position:
template <typename charT, typename traits = std::char_traits<charT>>
inline std::basic_string_view<charT, traits> getToken(std::basic_string_view<charT, traits> sv,
charT delimiter, std::size_t& position)