diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-23 18:59:37 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-23 18:59:37 +0200 |
commit | c6cd2f1f164baac1414f2cf658566de146b10552 (patch) | |
tree | cec573bbddacd175f37d8d45e48e8cea80727420 /README | |
parent | 2958c57db73b5af03af36598c9dffc9123a0a003 (diff) | |
download | EpisodeBrowser-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-- | README | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |