diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-21 22:00:16 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-21 22:00:16 +0000 |
commit | b81ce648978e75bc7db4cc3b8aa7d1b9fcb9239b (patch) | |
tree | de3eb9058f630682a355ac5135b2efb60256b4ca /include/delphi | |
parent | ff758bb8a00f34eb77fd385b18afea24388a915f (diff) |
MS_UTILS_REPLACEVARS -> Utils_ReplaceVars
git-svn-id: http://svn.miranda-ng.org/main/trunk@14316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/delphi')
-rw-r--r-- | include/delphi/m_utils.inc | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/include/delphi/m_utils.inc b/include/delphi/m_utils.inc index f71dfedd65..1a313cea7e 100644 --- a/include/delphi/m_utils.inc +++ b/include/delphi/m_utils.inc @@ -309,10 +309,9 @@ function PathIsAbsoluteW(const pSrc:PWideChar):int; stdcall; procedure Utils_GetRandom(pSrc:pointer; size:size_t); stdcall;
external CoreDLL name 'Utils_GetRandom';
-//Replace variables in text
-//wParam=(char*/TCHAR*/WCHAR*)string (depends on RVF_UNICODE/RVF_TCHAR flag)
-//lParam=(REPLACEVARSDATA *) data about variables, item with key=0 terminates the list
-//returns new string, use mir_free to destroy
+// Replace variables in text
+// returns new string, use mir_free to destroy
+
type
PREPLACEVARSARRAY = ^TREPLACEVARSARRAY;
TREPLACEVARSARRAY = record
@@ -320,18 +319,10 @@ type szValue:TCHAR;
end;
-type
- TREPLACEVARSDATA = record
- cbSize :int;
- dwFlags :dword;
- hContact :TMCONTACT;
- variables:PREPLACEVARSARRAY;
- end;
-
-const
- RVF_UNICODE = 1;
-
- MS_UTILS_REPLACEVARS:PAnsiChar = 'Utils/ReplaceVars';
+function Utils_ReplaceVars(const pSrc:PAnsiChar; hContact:TMCONTACT = 0; vars:PREPLACEVARSARRAY = nil):PAnsiChar; stdcall;
+ external CoreDLL name 'Utils_ReplaceVars';
+function Utils_ReplaceVarsW(const pSrc:PWideChar; hContact:TMCONTACT = 0; vars:PREPLACEVARSARRAY = nil):PWideChar; stdcall;
+ external CoreDLL name 'Utils_ReplaceVarsW';
{
variables known by the core:
|