-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPathHelper.h
38 lines (31 loc) · 917 Bytes
/
PathHelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//==============
// PathHelper.h
//==============
#pragma once
//=======
// Using
//=======
#include "StringClass.h"
//=============
// Path-Helper
//=============
class PathHelper
{
public:
// Common
static UINT GetComponentLength(LPCSTR Path);
static UINT GetComponentLength(LPCWSTR Path);
static Handle<String> GetDirectory(LPCSTR Path);
static Handle<String> GetDirectory(LPCWSTR Path);
static UINT GetDirectoryLength(LPCSTR Path);
static UINT GetDirectoryLength(LPCWSTR Path);
static LPCSTR GetExtension(LPCSTR Path);
static LPCWSTR GetExtension(LPCWSTR Path);
static Handle<String> GetHostName(LPCSTR Path);
static Handle<String> GetHostName(LPCWSTR Path);
static Handle<String> GetHostName(Handle<String> const& Path);
static LPCSTR GetLastComponent(LPCSTR Path);
static LPCWSTR GetLastComponent(LPCWSTR Path);
static BOOL IsSeparator(CHAR Char);
static BOOL IsSeparator(WCHAR Char);
};