Here you can find the source of leftTrimSlashes(String s)
Parameter | Description |
---|---|
s | the input string |
public static String leftTrimSlashes(String s)
//package com.java2s; /**// w w w. j a va2 s . co m * Copyright (c) 2011 Martin Geisse * * This file is distributed under the terms of the MIT license. */ public class Main { /** * Returns the specified string with all leading slashes removed. * @param s the input string * @return the trimmed string */ public static String leftTrimSlashes(String s) { while (s.startsWith("/")) { s = s.substring(1); } return s; } }