unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

resource.cpp
Go to the documentation of this file.
1#include "rar.hpp"
2
3
4
5
6
7#ifndef RARDLL
8const wchar* St(MSGID StringId)
9{
10 return StringId;
11}
12
13
14// Needed for Unix swprintf to convert %s to %ls in legacy language resources.
15const wchar *StF(MSGID StringId)
16{
17 static wchar FormattedStr[512];
18 PrintfPrepareFmt(St(StringId),FormattedStr,ASIZE(FormattedStr));
19 return FormattedStr;
20}
21#endif
22
const wchar * MSGID
Definition: os.hpp:228
#define ASIZE(x)
Definition: rardefs.hpp:10
wchar_t wchar
Definition: rartypes.hpp:13
const wchar * StF(MSGID StringId)
Definition: resource.cpp:15
const wchar * St(MSGID StringId)
Definition: resource.cpp:8
void PrintfPrepareFmt(const wchar *Org, wchar *Cvt, size_t MaxSize)
Definition: strfn.cpp:415