mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
31 lines
638 B
C++
31 lines
638 B
C++
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
#include "unicode.h"
|
|
}
|
|
|
|
#include <string_view>
|
|
|
|
static inline void ffStrbufInitWSV(FFstrbuf* result, const std::wstring_view source)
|
|
{
|
|
return ffStrbufInitNWS(result, (uint32_t) source.size(), source.data());
|
|
}
|
|
|
|
static inline FFstrbuf ffStrbufCreateWSV(const std::wstring_view source)
|
|
{
|
|
return ffStrbufCreateNWS((uint32_t) source.size(), source.data());
|
|
}
|
|
|
|
static inline void ffStrbufSetWSV(FFstrbuf* result, const std::wstring_view source)
|
|
{
|
|
return ffStrbufSetNWS(result, (uint32_t) source.size(), source.data());
|
|
}
|
|
|
|
#else
|
|
|
|
#error Must be included in C++ source file
|
|
|
|
#endif
|