Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
XTimeUtils.cpp File Reference
#include "utils/XTimeUtils.h"
#include "platform/win32/CharsetConverter.h"
#include <FileAPI.h>
#include <Windows.h>

Namespaces

namespace  KODI
 
namespace  KODI::TIME
 

Functions

uint32_t KODI::TIME::GetTimeZoneInformation (TimeZoneInformation *timeZoneInformation)
 
void KODI::TIME::GetLocalTime (SystemTime *systemTime)
 
int KODI::TIME::FileTimeToLocalFileTime (const FileTime *fileTime, FileTime *localFileTime)
 
int KODI::TIME::SystemTimeToFileTime (const SystemTime *systemTime, FileTime *fileTime)
 
long KODI::TIME::CompareFileTime (const FileTime *fileTime1, const FileTime *fileTime2)
 
int KODI::TIME::FileTimeToSystemTime (const FileTime *fileTime, SystemTime *systemTime)
 
int KODI::TIME::LocalFileTimeToFileTime (const FileTime *localFileTime, FileTime *fileTime)
 
std::string FromW (const wchar_t *str, size_t length)
 

Function Documentation

◆ FromW()

std::string KODI::PLATFORM::WINDOWS::FromW ( const wchar_t * str,
size_t length )

Convert UTF-16 to UTF-8 strings Windows specific method to avoid initialization issues and locking issues that are unique to Windows as API calls expect UTF-16 strings

Parameters
str[in]string to be converted
length[in]length in characters of the string
Returns
utf8 string, empty string on failure