MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / bytes_to_string

Function bytes_to_string

include/jsoncons/utility/conversion.hpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename InputIt,typename Container>
26typename std::enable_if<std::is_same<typename std::iterator_traits<InputIt>::value_type,uint8_t>::value
27 && ext_traits::is_string<Container>::value,size_t>::type
28bytes_to_string(InputIt first, InputIt last, semantic_tag tag, Container& str)
29{
30 switch (tag)
31 {
32 case semantic_tag::base64:
33 return bytes_to_base64(first, last, str);
34 case semantic_tag::base16:
35 return bytes_to_base16(first, last, str);
36 default:
37 return bytes_to_base64url(first, last, str);
38 }
39}
40
41template <typename InputIt,typename Container>
42typename std::enable_if<ext_traits::is_back_insertable_byte_container<Container>::value,to_bytes_result<InputIt>>::type

Callers 3

try_as_stringFunction · 0.85
get_Method · 0.85

Calls 3

bytes_to_base64Function · 0.85
bytes_to_base16Function · 0.85
bytes_to_base64urlFunction · 0.85

Tested by

no test coverage detected