Audio 1.0.0
Functions
utils.h File Reference
#include <string>

Go to the source code of this file.

Functions

void openWebLink (std::string url)
 Open url in default web browser. More...
 
template<typename T >
int min (T value1, T value2)
 Get min value. More...
 
std::string getFileName (const std::string &path)
 Get filename from file path. More...
 

Detailed Description

Author
Asiern (https://github.com/Asiern)
Date
2021-08-27

Function Documentation

◆ getFileName()

std::string getFileName ( const std::string &  path)
inline

Get filename from file path.

Parameters
pathfile path
Returns
filename

◆ min()

template<typename T >
int min ( value1,
value2 
)

Get min value.

Parameters
value1
value2
Returns
min{value1, value2}

◆ openWebLink()

void openWebLink ( std::string  url)
inline

Open url in default web browser.

Parameters
urlweb url
Returns
void