}
}
-unsigned char *convertTtoUTF8(buffer * buf, LPCTSTR src, int srcbytes/* = -1*/)
+unsigned char *convertTtoUTF8(buffer * buf, const TCHAR *src, int srcbytes/* = -1*/)
{
bool bSucceeded;
#ifdef _UNICODE
return buf->ptr;
}
-unsigned char *convertTtoUTF8(LPCTSTR src, int srcbytes/* = -1*/)
+unsigned char *convertTtoUTF8(const TCHAR *src, int srcbytes/* = -1*/)
{
buffer buf(256);
convertTtoUTF8(&buf, src, srcbytes);
return (unsigned char *)_strdup((const char *)buf.ptr);
}
-TCHAR *convertUTF8toT(buffer * buf, LPCSTR src, int srcbytes/* = -1*/)
+TCHAR *convertUTF8toT(buffer * buf, const char *src, int srcbytes/* = -1*/)
{
bool bSucceeded;
#ifdef _UNICODE
return (TCHAR *)buf->ptr;
}
-TCHAR *convertUTF8toT(LPCSTR src, int srcbytes/* = -1*/)
+TCHAR *convertUTF8toT(const char *src, int srcbytes/* = -1*/)
{
buffer buf(256);
convertUTF8toT(&buf, src, srcbytes);
UCS4LE, /**< UTF-32 little endian */
UCS4BE, /**< UTF-32 big-endian */
};
-String GetUnicodesetName(UNICODESET codeset);
int Ucs4_to_Utf8(unsigned unich, unsigned char * utf8);
int Utf8len_fromLeadByte(unsigned char ch);
afx_msg void OnCtxtDirZip();
template<SIDE_TYPE stype>
afx_msg void OnCtxtDirShellContextMenu();
- afx_msg void OnUpdateCtxtDir(CCmdUI* pCmdUI);
afx_msg void OnSelectAll();
afx_msg void OnUpdateSelectAll(CCmdUI* pCmdUI);
afx_msg void OnPluginPredifferMode(UINT nID);
afx_msg void OnHelpGnulicense();
afx_msg void OnOptions();
afx_msg void OnViewSelectfont();
- afx_msg void OnUpdateViewSelectfont(CCmdUI* pCmdUI);
afx_msg void OnViewUsedefaultfont();
- afx_msg void OnUpdateViewUsedefaultfont(CCmdUI* pCmdUI);
afx_msg void OnHelpContents();
- afx_msg void OnUpdateHelpContents(CCmdUI* pCmdUI);
afx_msg void OnClose();
afx_msg void OnToolsGeneratePatch();
afx_msg void OnDropFiles(const std::vector<String>& files);
static void CopyHKLMValues();
static bool OpenHKLM(HKEY *key, LPCTSTR relpath = nullptr);
static bool OpenHKCU(HKEY *key, LPCTSTR relpath = nullptr);
-static bool IsFirstRun(HKEY key);
static void CopyFromLMtoCU(HKEY lmKey, HKEY cuKey, LPCTSTR valname);
-static void ResetFirstRun(HKEY key);
namespace Options
{
bool GetLeftReadOnly() const;
String GetMiddle(bool * pReadOnly = nullptr) const;
bool GetMiddleReadOnly() const;
- String GetMiddle() const;
String GetRight(bool * pReadOnly = nullptr) const;
bool GetRightReadOnly() const;
String GetFilter() const;