mpd/src/util/UriQueryParser.hxx

18 lines
483 B
C++
Raw Normal View History

// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
2019-08-09 16:27:42 +02:00
#pragma once
2019-08-09 16:27:42 +02:00
#include <string_view>
2019-08-09 16:27:42 +02:00
/**
* Find the first query parameter with the given name and return its
* raw value (without unescaping).
*
* @return the raw value (pointing into the #query_string parameter)
* or nullptr if the parameter does not exist
*/
[[gnu::pure]]
std::string_view
UriFindRawQueryParameter(std::string_view query_string, std::string_view name) noexcept;