diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-26 19:41:11 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-26 19:41:11 +0200 |
commit | b966497200b47ca5efb3a5853891ea4590927371 (patch) | |
tree | 45670cff2c4682f0d0c1b1e33c1dddadfe8d58d7 /README | |
parent | 547cbe578dcdb5aa5cfdac1cdb327f92bad21219 (diff) | |
download | EpisodeBrowser-b966497200b47ca5efb3a5853891ea4590927371.tar.gz |
Use 's' instead of 'str' for as prefix for managed strings.
Diffstat (limited to 'README')
-rw-r--r-- | README | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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<TCHAR>) - - bstr = ... (std::basic_string<T> 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... |