-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUtil.h
More file actions
24 lines (20 loc) · 736 Bytes
/
Copy pathUtil.h
File metadata and controls
24 lines (20 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <string>
#include <Dialogs.h>
#ifndef _UTIL_
#define _UTIL_
using namespace std;
class Util
{
public:
static char* PtoCStr(unsigned char *s);
static std::string PtoStr(unsigned char *s);
static unsigned char* CtoPStr(char *s);
static unsigned char* StrToPStr(const string& str);
static void Debug(string msg);
static void FrameDefaultButton(DialogPtr dialog, short itemNo, bool active);
static bool IsControlHilited(DialogPtr dialog, short itemNo);
static string UrlEncode(string &value);
static double MicrosecondToDouble(register const UnsignedWide *epochPtr);
static OSErr GetDirectoryId(short parentFolderVRefNum, long parentFolderDirID, Str255 folderName, long* directoryId);
};
#endif // _UTIL_