| 68 | } |
| 69 | |
| 70 | ada_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 |
nothing calls this directly
no test coverage detected