From b966497200b47ca5efb3a5853891ea4590927371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 26 Jul 2022 19:41:11 +0200 Subject: Use 's' instead of 'str' for as prefix for managed strings. --- README | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'README') diff --git a/README b/README index c8b3f5c..d7c644f 100644 --- a/README +++ b/README @@ -70,12 +70,9 @@ Following is a summary of some coding conventions used in the project. - dw = DWORD - lvi = LVITEM - sz = unmanaged, zero-terminated narrow string (char*) - - wsz = ... wide string (wchar_t*) - - tsz = ... tstring (TCHAR*) - - str = managed narrow string (std::string) - - wstr = ... (std::wstring) - - tstr = ... (std::basic_string) - - bstr = ... (std::basic_string of any type T) + - wsz = unmanaged, zero-terminated wide string (wchar_t*) + - s = managed narrow string (std::string) + - ws = managed wide string (std::wstring) The list above is non-exhaustive. Variables whose type is unknown (in templates) do not need prefixes. Some very common self-explanatory @@ -99,7 +96,7 @@ For example, prefer... - LVITEM* over LPLVITEM - int over INT - DWORD over unsigned long - (when interacting with the Windows API) + (but only when interacting with Windows) Note... -- cgit v1.2.3