util/SplitString: use std::string_view

This commit is contained in:
Max Kellermann
2022-07-01 11:13:43 +02:00
parent e6bb6c59ec
commit ea3f044cd8
2 changed files with 6 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2020 Max Kellermann <max.kellermann@gmail.com>
* Copyright 2013-2022 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,8 +27,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef SPLIT_STRING_HXX
#define SPLIT_STRING_HXX
#pragma once
#include <forward_list>
#include <string_view>
@@ -45,5 +44,3 @@
*/
std::forward_list<std::string_view>
SplitString(std::string_view s, char separator, bool strip=true) noexcept;
#endif