summaryrefslogtreecommitdiff
path: root/include/m_utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-05-01 11:58:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-01 11:58:04 +0300
commit28d98a38c756991d461301efb483e4980a2def69 (patch)
treed317b4a941832d3cc4137a6f597c029757913987 /include/m_utils.h
parentd75d5e8706b06457b799831448f282818233abe9 (diff)
Utils_IsRtl - core function to detect RTL direcction
Diffstat (limited to 'include/m_utils.h')
-rw-r--r--include/m_utils.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/m_utils.h b/include/m_utils.h
index 0b5b29468c..549cc18815 100644
--- a/include/m_utils.h
+++ b/include/m_utils.h
@@ -303,13 +303,17 @@ EXTERN_C MIR_CORE_DLL(int) PathIsAbsoluteW(const wchar_t *pSrc);
/////////////////////////////////////////////////////////////////////////////////////////
// Generates Random number of any length
-// wParam = size - length of the random number to generate
-// lParam = (LPARAM)(char*)pszArray - pointer to array to fill with random number
-// Always returns 0
+// cbLen = length of the random number to generate
+// pszDest = pointer to array to fill with random number
EXTERN_C MIR_CORE_DLL(void) Utils_GetRandom(void *pszDest, size_t cbLen);
/////////////////////////////////////////////////////////////////////////////////////////
+// Checks if a string is RTL
+
+EXTERN_C MIR_CORE_DLL(bool) Utils_IsRtl(const wchar_t *pszwText);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// Replace variables in text
// wParam = (char*/wchar_t*/wchar_t*)string (depends on RVF_UNICODE/RVF_TCHAR flag)
// lParam = (REPLACEVARSDATA *) data about variables, item with key = 0 terminates the list