libwordring
公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
wordring::whatwg::encoding::text_decoder クラス

TextDecoderCommon [詳解]

#include <api.hpp>

wordring::whatwg::encoding::text_decoder の継承関係図
wordring::whatwg::encoding::text_decoder_common

公開メンバ関数

 text_decoder (encoding_name name, bool fatal, bool ignore_bom)
 
 text_decoder (std::u32string_view label=U"utf-8", bool fatal=false, bool ignore_bom=false)
 構築 [詳解]
 
template<typename InputIterator = std::nullptr_t>
std::u32string decode (InputIterator first=nullptr, InputIterator last=nullptr, bool stream=false)
 デコード [詳解]
 
- 基底クラス wordring::whatwg::encoding::text_decoder_common に属する継承公開メンバ関数
std::u32string encoding () const
 エンコーディング名 [詳解]
 
bool fatal () const
 Fatal フラグ [詳解]
 
bool ignore_bom () const
 BOM 無視フラグ [詳解]
 

限定公開変数類

bool m_do_not_flush = false
 
- 基底クラス wordring::whatwg::encoding::text_decoder_common に属する継承限定公開変数類
encoding_name m_encoding = static_cast<encoding_name>(0)
 
coder m_decoder
 
io_queue< char > m_io_queue
 
bool m_ignore_bom = false
 
bool m_bom_seen = false
 
error_mode_name m_error_mode = error_mode_name::Replacement
 

詳解

TextDecoderCommon

参照
https://encoding.spec.whatwg.org/#interface-mixin-textdecodercommon

構築子と解体子

◆ text_decoder()

wordring::whatwg::encoding::text_decoder::text_decoder ( std::u32string_view  label = U"utf-8",
bool  fatal = false,
bool  ignore_bom = false 
)
inlineexplicit

関数詳解

◆ decode()

template<typename InputIterator = std::nullptr_t>
std::u32string wordring::whatwg::encoding::text_decoder::decode ( InputIterator  first = nullptr,
InputIterator  last = nullptr,
bool  stream = false 
)
inline

デコード

変換中エラーに遭遇した場合、std::range_error を送出します。

参照
https://triple-underscore.github.io/Encoding-ja.html#dom-textdecoder-decode

このクラス詳解は次のファイルから抽出されました: