is_input_error_skippableļ
For an encoding object encoding
, it checks that there exists a function that can be called with the format encoding.skip_input_error(result)
, where result
is either a ztd::text::decode_result<ā¦> (for decoding operations which have failed) and ztd::text::encode_result<ā¦> (for encoding operations which have failed). This allows an encoding to control precisely how to move ahead with the input when a problem is encountered.
-
template<typename _Encoding, typename _Result, typename _InputProgress, typename _OutputProgress>
class is_input_error_skippable : public std::integral_constant<bool, is_detected_v<__txt_detail::__detect_skip_input_error, _Encoding, _Result, _InputProgress, _OutputProgress>>ļ Whether or not the given
_Encoding
has a function calledskip_input_error
that takes the given_Result
type with the given_InputProgress
and_OutputProgress
types.Remark
This is used by ztd::text::replacement_handler and ztd::text::skip_handler to pass over malformed input when it happens.
- Template Parameters
_Encoding ā The encoding that may contain the skip_input_error function.
_Result ā The result type to check if the input is callable.
_InputProgress ā The input progress type passed in to the error handler to be forwarded to the skip input error.
_OutputProgress ā The output progress type passed in to the error handler to be forwarded to the skip input error.
-
template<typename _Encoding, typename _Result, typename _InputProgress, typename _OutputProgress>
constexpr bool ztd::text::is_input_error_skippable_v = is_input_error_skippable<_Encoding, _Result, _InputProgress, _OutputProgress>::valueļ An alias of the inner
value
for ztd::text::is_input_error_skippable.