Sayonara Player
Functions
Helper::Url Namespace Reference

Detailed Description

Helper function for Url handling.

Functions

QString get_protocol (const QString &url)
 get protocol string without :// More...
 
QString get_base_url (const QString &url)
 get url until the first / More...
 
QString get_filename (const QString &url)
 get everything behind the last / More...
 

Function Documentation

◆ get_base_url()

QString Helper::Url::get_base_url ( const QString &  url)

get url until the first /

Parameters
urlsource url
Returns
the first letters before first /, url if there is no /

◆ get_filename()

QString Helper::Url::get_filename ( const QString &  url)

get everything behind the last /

Parameters
urlsource filename
Returns
everything behind last /, or empty string, if there is no /

◆ get_protocol()

QString Helper::Url::get_protocol ( const QString &  url)

get protocol string without ://

Parameters
urlsource url
Returns
the first letters before ://