Replaces backslashes with slashes. @param path the path @return the path with forward slashes
(String path)
| 208 | * @return the path with forward slashes |
| 209 | */ |
| 210 | public static String forwardSlash(String path) { |
| 211 | if(path==null) { |
| 212 | return ""; //$NON-NLS-1$ |
| 213 | } |
| 214 | int i = path.indexOf("\\"); //$NON-NLS-1$ |
| 215 | while(i!=-1) { |
| 216 | path = path.substring(0, i)+"/"+path.substring(i+1); //$NON-NLS-1$ |
| 217 | i = path.indexOf("\\"); //$NON-NLS-1$ |
| 218 | } |
| 219 | return path; |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * Gets the name from the specified path. |
no outgoing calls
no test coverage detected