00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00020 #ifndef __LRT_EPOC_TOOLS__
00021 #define __LRT_EPOC_TOOLS__
00022
00023 #include <rtstring.h>
00024
00025 #include <e32std.h>
00026
00028 #ifdef __SYMBIAN32__
00029
00030 #ifdef _UNICODE
00031 #include <e32std.h>
00032 TBuf<256> ESTRING(const lrt::String& str);
00033 #else
00034 #include <e32def.h>
00036 #define ESTRING(str) _L(((unsigned char*)str.cStr()))
00037 #endif
00038
00039 #ifdef _UNICODE
00040 lrt::String MYSTRING(const TDesC& str);
00041 #define MYSTRING_C(str) MYSTRING(str)
00042 #else
00043
00044 #define MYSTRING(str) lrt::String((char*)(str.PtrZ()))
00045
00046 #define MYSTRING_C(str) lrt::String((const char *)(str.Des().PtrZ()))
00047 #endif
00048
00049 #endif
00050
00051
00052
00053 #endif
00054