Here you can find the source of leftTrim(final String aString)
Parameter | Description |
---|---|
aString | the String to trim. |
\\u0020
removed from the beginning
public static String leftTrim(final String aString)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww. j a v a 2s . c o m*/ * Copies this String removing white space characters from the beginning of the string. * * @param aString the String to trim. * @return a new String with characters <code>\\u0020</code> removed from the beginning */ public static String leftTrim(final String aString) { if (aString == null) { return null; } int start = 0; while ((start < aString.length()) && (aString.charAt(start) <= ' ')) { start++; } if (start == 0) { return aString; } return aString.substring(start); } }