Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
Variant.cpp File Reference
#include "Variant.h"
#include <charconv>
#include <cstdlib>
#include <cstring>
#include <string>
#include <utility>
#include <variant>

Classes

struct  overloaded< Ts >
 

Macros

#define _LIBCPP_DISABLE_AVAILABILITY
 
#define strtoll(str, endptr, base)
 
#define strtoull(str, endptr, base)
 
#define wcstoll(str, endptr, base)
 
#define wcstoull(str, endptr, base)
 

Functions

template<class... Ts>
 overloaded (Ts...) -> overloaded< Ts... >
 
std::string_view trim (std::string_view str)
 
std::wstring_view trim (std::wstring_view str)
 
int64_t str2int64 (std::string_view str, int64_t fallback)
 
int64_t str2int64 (std::wstring_view str, int64_t fallback)
 
uint64_t str2uint64 (std::string_view str, uint64_t fallback)
 
uint64_t str2uint64 (std::wstring_view str, uint64_t fallback)
 
double str2double (std::string_view str, double fallback)
 
double str2double (std::wstring_view str, double fallback)
 

Macro Definition Documentation

◆ _LIBCPP_DISABLE_AVAILABILITY

#define _LIBCPP_DISABLE_AVAILABILITY

◆ strtoll

#define strtoll ( str,
endptr,
base )
Value:
(int64_t)strtod(str, endptr)
typedef int64_t(ATTR_APIENTRYP PFN_KODI_ADDON_AUDIODECODER_SEEK_V1)(const KODI_ADDON_AUDIODECODER_HDL hdl

◆ strtoull

#define strtoull ( str,
endptr,
base )
Value:
(uint64_t)strtod(str, endptr)

◆ wcstoll

#define wcstoll ( str,
endptr,
base )
Value:
(int64_t)wcstod(str, endptr)

◆ wcstoull

#define wcstoull ( str,
endptr,
base )
Value:
(uint64_t)wcstod(str, endptr)

Function Documentation

◆ overloaded()

template<class... Ts>
overloaded ( Ts... ) -> overloaded< Ts... >

◆ str2double() [1/2]

double str2double ( std::string_view str,
double fallback )

◆ str2double() [2/2]

double str2double ( std::wstring_view str,
double fallback )

◆ str2int64() [1/2]

int64_t str2int64 ( std::string_view str,
int64_t fallback )

◆ str2int64() [2/2]

int64_t str2int64 ( std::wstring_view str,
int64_t fallback )

◆ str2uint64() [1/2]

uint64_t str2uint64 ( std::string_view str,
uint64_t fallback )

◆ str2uint64() [2/2]

uint64_t str2uint64 ( std::wstring_view str,
uint64_t fallback )

◆ trim() [1/2]

std::string_view trim ( std::string_view str)

◆ trim() [2/2]

std::wstring_view trim ( std::wstring_view str)