MCPcopy Create free account
hub / github.com/ada-url/ada / string_view to_string

Method string_view to_string

src/implementation.cpp:70–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70ada_warn_unused std::string_view to_string(ada::encoding_type type) {
71 switch (type) {
72 case ada::encoding_type::UTF8:
73 return "UTF-8";
74 case ada::encoding_type::UTF_16LE:
75 return "UTF-16LE";
76 case ada::encoding_type::UTF_16BE:
77 return "UTF-16BE";
78 default:
79 unreachable();
80 }
81}
82
83} // namespace ada

Callers

nothing calls this directly

Calls 1

unreachableFunction · 0.85

Tested by

no test coverage detected