Permalink
Browse files

Ability to set path without directory separator correction.

  • Loading branch information...
1 parent 6901888 commit fb1411b1477a4b3e1ff9ce816978f33ee748a267 @berenddeboer committed Mar 23, 2012
Showing with 11 additions and 1 deletion.
  1. +1 −0 src/posix/epx_path.e
  2. +9 −1 src/standardc/stdc_path.e
  3. +1 −0 src/windows/epx_path.e
View
1 src/posix/epx_path.e
@@ -25,6 +25,7 @@ create
copy, -- needed for SE, might not work for other compilers
make,
make_from_string,
+ make_from_raw_string,
make_expand
View
10 src/standardc/stdc_path.e
@@ -35,7 +35,7 @@ feature -- Initialization
make_from_string (a_path: STRING) is
-- The new path contains the correct directory separator
- -- independent of what is used in `s'
+ -- independent of what is passed in `a_path'.
require
a_path_not_void: a_path /= Void
do
@@ -45,6 +45,14 @@ feature -- Initialization
remove_trailing_slash
end
+ make_from_raw_string (a_path: STRING) is
+ -- As `make_from_string' but do not correct the directory separator.
+ require
+ a_path_not_void: a_path /= Void
+ do
+ org_make_from_string (a_path)
+ end
+
make_expand (s: STRING) is
-- The new path is the expanded contents of `s'.
require
View
1 src/windows/epx_path.e
@@ -25,6 +25,7 @@ create
copy, -- needed for SE, might not work for other compilers
make,
make_from_string,
+ make_from_raw_string,
make_expand
end

0 comments on commit fb1411b

Please sign in to comment.