summaryrefslogtreecommitdiff
blob: e7e36872991fdf8ff67b5896b7f4d18487f89692 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- advancecomp-1.10.orig/utility.cc	2004-04-06 20:02:25.000000000 +0200
+++ advancecomp-1.10/utility.cc	2004-05-29 17:33:00.098153880 +0200
@@ -416,7 +416,7 @@
 {
 	ostringstream os;
 
-	unsigned pos = path.rfind('.');
+	string::size_type pos = path.rfind('.');
 
 	if (pos == string::npos) 
 		os << path << ".";
@@ -433,7 +433,7 @@
  */
 string file_dir(const string& path) throw ()
 {
-	unsigned pos = path.rfind('/');
+	string::size_type pos = path.rfind('/');
 	if (pos == string::npos) {
 		return "";
 	} else {
@@ -446,7 +446,7 @@
  */
 string file_name(const string& path) throw ()
 {
-	unsigned pos = path.rfind('/');
+	string::size_type pos = path.rfind('/');
 	if (pos == string::npos) {
 		return path;
 	} else {
@@ -459,7 +459,7 @@
  */
 string file_basepath(const string& path) throw ()
 {
-	unsigned dot = path.rfind('.');
+	string::size_type dot = path.rfind('.');
 	if (dot == string::npos)
 		return path;
 	else
@@ -472,7 +472,7 @@
 string file_basename(const string& path) throw ()
 { 
 	string name = file_name(path);
-	unsigned dot = name.rfind('.');
+	string::size_type dot = name.rfind('.');
 	if (dot == string::npos)
 		return name;
 	else
@@ -485,7 +485,7 @@
 string file_ext(const string& path) throw ()
 { 
 	string name = file_name(path);
-	unsigned dot = name.rfind('.');
+	string::size_type dot = name.rfind('.');
 	if (dot == string::npos)
 		return "";
 	else