aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-23 18:59:37 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-23 18:59:37 +0200
commitc6cd2f1f164baac1414f2cf658566de146b10552 (patch)
treecec573bbddacd175f37d8d45e48e8cea80727420 /README
parent2958c57db73b5af03af36598c9dffc9123a0a003 (diff)
downloadEpisodeBrowser-c6cd2f1f164baac1414f2cf658566de146b10552.tar.gz
Fix display of Unicode text.
Turns out that SWI-Prolog's wide string functions, which I started using in 03fe361, do not convert between narrow Prolog atoms and wide C strings, as I mistakenly thought. Instead, they work with wide Prolog atoms. In hindsight, it is not surprising.
Diffstat (limited to 'README')
-rw-r--r--README9
1 files changed, 5 insertions, 4 deletions
diff --git a/README b/README
index ebe22ef..c8b3f5c 100644
--- a/README
+++ b/README
@@ -69,12 +69,13 @@ Following is a summary of some coding conventions used in the project.
- w = WORD, WPARAM
- dw = DWORD
- lvi = LVITEM
- - sz = unmangaged, zero-terminated string (char *)
- - wsz = ... wide string (wchar_t *)
- - tsz = ... tstring (TCHAR *)
- - str = ... managed string (std::string)
+ - 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)
The list above is non-exhaustive. Variables whose type is unknown (in
templates) do not need prefixes. Some very common self-explanatory