@@ 21-27 (lines=7) @@ | ||
18 | * @param string $filename |
|
19 | * @return string |
|
20 | */ |
|
21 | function BaseName1 ($filename) { |
|
22 | $i = strrpos($filename, '/'); |
|
23 | if (false === $i) |
|
24 | return $filename; |
|
25 | else |
|
26 | return substr($filename, $i + 1); |
|
27 | } // end of func BaseName1 |
|
28 | ||
29 | ||
30 | /** |
|
@@ 72-78 (lines=7) @@ | ||
69 | * @param string $filename |
|
70 | * @return string |
|
71 | */ |
|
72 | function DirName1 ($filename) { |
|
73 | $i = strrpos($filename, '/'); |
|
74 | if (false === $i) |
|
75 | return ''; |
|
76 | else |
|
77 | return substr($filename, 0, $i); |
|
78 | } // end of func DirName1 |
|
79 | ||
80 | ||
81 | /** |
|
@@ 133-140 (lines=8) @@ | ||
130 | * @param string $filename |
|
131 | * @return string |
|
132 | */ |
|
133 | function FileName1 ($filename) { |
|
134 | $basename = Basename1($filename); |
|
135 | $i = strrpos($basename, '.'); |
|
136 | if (false === $i) |
|
137 | return $basename; |
|
138 | else |
|
139 | return substr($basename, 0, $i); |
|
140 | } // end of func FileName1 |
|
141 | ||
142 | ||
143 | /** |