aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-26 19:41:11 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-26 19:41:11 +0200
commitb966497200b47ca5efb3a5853891ea4590927371 (patch)
tree45670cff2c4682f0d0c1b1e33c1dddadfe8d58d7 /README
parent547cbe578dcdb5aa5cfdac1cdb327f92bad21219 (diff)
downloadEpisodeBrowser-b966497200b47ca5efb3a5853891ea4590927371.tar.gz
Use 's' instead of 'str' for as prefix for managed strings.
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 4 insertions, 7 deletions
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<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...