MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / string narrow

Method string narrow

include/CLI/impl/Encoding_inl.hpp:128–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126} // namespace detail
127
128CLI11_INLINE std::string narrow(const wchar_t *str, std::size_t str_size) { return detail::narrow_impl(str, str_size); }
129CLI11_INLINE std::string narrow(const std::wstring &str) { return detail::narrow_impl(str.data(), str.size()); }
130// Flawfinder: ignore
131CLI11_INLINE std::string narrow(const wchar_t *str) { return detail::narrow_impl(str, std::wcslen(str)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected