blob: f9c355aa6f3ce5bfdaf0640c4230735632e3ddd9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#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
|