From ccec9a29570b171206cafa404e8972dbe87c2567 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 27 Sep 2021 14:59:42 +0300 Subject: docs: refine Doxygen comments --- include/winapi/utf8.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include/winapi') diff --git a/include/winapi/utf8.hpp b/include/winapi/utf8.hpp index f2cee4e..9259df6 100644 --- a/include/winapi/utf8.hpp +++ b/include/winapi/utf8.hpp @@ -19,16 +19,17 @@ namespace winapi { /** Convert UTF-8 string to UTF-16. */ std::wstring widen(const std::string&); + /** * Convert UTF-8 string to UTF-16. - * \param src Pointer to UTF-8 string. - * \param nb Number of bytes pointed to src. + * \param src Memory address of a UTF-8 string. + * \param nb String size (in bytes). */ std::wstring widen(const void* src, std::size_t nb); /** * Convert UTF-8 string to UTF-16. - * \param src UTF-8 string. + * \param src Buffer holding a UTF-8 string. */ template > std::wstring widen(const std::vector& src) { @@ -37,16 +38,17 @@ std::wstring widen(const std::vector& src) { /** Convert UTF-16 string to UTF-8. */ std::string narrow(const std::wstring&); + /** * Convert UTF-16 string to UTF-8. - * \param src Pointer to UTF-16 string. - * \param nb Number of bytes pointed to by src. + * \param src Memory address of a UTF-16 string. + * \param nb String size (in bytes). */ std::string narrow(const void* src, std::size_t nb); /** * Convert UTF-16 string to UTF-8. - * \param src UTF-16 string. + * \param src Buffer holding a UTF-16 string. */ template > std::string narrow(const std::vector& src) { -- cgit v1.2.3