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 #ifndef NEDIT_FILEUTILS_H_INCLUDED
28 #define NEDIT_FILEUTILS_H_INCLUDED
29
30 enum fileFormats {
UNIX_FILE_FORMAT,
DOS_FILE_FORMAT,
MAC_FILE_FORMAT};
31
32 int ParseFilename(
const char *fullname,
char *filename,
char *pathname);
33 int ExpandTilde(
char *pathname);
34 const char* GetTrailingPathComponents(
const char* path,
35 int noOfComponents);
36 int NormalizePathname(
char *pathname);
37 int CompressPathname(
char *pathname);
38 int ResolvePath(
const char * pathIn,
char * pathResolved);
39
40 int FormatOfFile(
const char *fileString);
41 void ConvertFromDosFileString(
char *inString,
int *length,
42 char* pendingCR);
43 void ConvertFromMacFileString(
char *fileString,
int length);
44 int ConvertToDosFileString(
char **fileString,
int *length);
45 void ConvertToMacFileString(
char *fileString,
int length);
46 char *ReadAnyTextFile(
const char *fileName,
int forceNL);
47
48 #endif
49