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:
@@ -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
|
// 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
|
// given position:
|
||||||
// etc., or extended to return the n'th token instead of just the first, or support an initial
|
|
||||||
// position of npos):
|
|
||||||
template <typename charT, typename traits = std::char_traits<charT>>
|
template <typename charT, typename traits = std::char_traits<charT>>
|
||||||
inline std::basic_string_view<charT, traits> getToken(std::basic_string_view<charT, traits> sv,
|
inline std::basic_string_view<charT, traits> getToken(std::basic_string_view<charT, traits> sv,
|
||||||
charT delimiter, std::size_t& position)
|
charT delimiter, std::size_t& position)
|
||||||
|
Reference in New Issue
Block a user