ClickHouse/dbms/include/DB/Common/UrlUtils.h

11 lines
214 B
C++
Raw Normal View History

#pragma once
#include <DB/Common/StringView.h>
/** Extracts scheme from given url.
*
* If there is no valid scheme then
* empty StringView will be returned.
*/
StringView getUrlScheme(const StringView& url);