Changeset fcf89c2 in tol
- Timestamp:
- Jun 24, 2010, 1:56:35 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 08771b9
- Parents:
- 29f736f
- File:
-
- 1 edited
-
tol/stdlib/general/grammars/_text.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/general/grammars/_text.tol
r29f736f rfcf89c2 161 161 { 162 162 If(OSUnix, Replace(path, "\\", "/"), Replace(path, "/", "\\")) 163 }; 164 165 ////////////////////////////////////////////////////////////////////////////// 166 Text RemoveLastSlash(Text txt) 167 ////////////////////////////////////////////////////////////////////////////// 168 { 169 Real len = TextLength(txt); 170 Text last = Sub(txt,len,len); 171 If(Or(last=="/",last=="\\"), Sub(txt,1,len-1), txt) 163 172 }; 164 173
Note: See TracChangeset
for help on using the changeset viewer.
