WebCFace 2.9.0
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
encoding.h File Reference
#include <string>
#include <string_view>
#include <memory>
#include "webcface-config.h"
Include dependency graph for encoding.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TStringView< CharT >
 webcfaceで管理されている文字列を参照するstring_view More...
 
class  SharedString
 u8stringとstringとwstringをshared_ptrで持ち共有する More...
 
class  StringInitializer
 SharedString のpublicなコンストラクタインタフェース (入力専用) More...
 

Namespaces

namespace  webcface
 
namespace  webcface::internal
 
namespace  webcface::encoding
 

Typedefs

using StringView = TStringView< char >
 
using WStringView = TStringView< wchar_t >
 
using SharedString = webcface::SharedString
 

Functions

void usingUTF8 (bool flag)
 webcfaceが使用するエンコーディングを設定する
 
bool usingUTF8 ()
 webcfaceが使用するエンコーディングを取得する
 
std::wstring toWide (std::string_view name_ref)
 stringをwstringに変換する
 
std::string toNarrow (std::wstring_view name_ref)
 wstringをstringに変換する
 
template<typename CharT , typename... Args>
std::basic_string< CharT > strJoin (std::basic_string_view< CharT > first_str, Args &&...args)
 string_viewやconst char*同士を連結しstringを返す
 
bool usingUTF8 ()
 
void usingUTF8 (bool flag)
 
std::wstring toWide (std::string_view name_ref)
 
std::string toNarrow (std::wstring_view name)