Here you can find the source of ltrim(final String str, final char filler)
Parameter | Description |
---|---|
str | a parameter |
filler | a parameter |
public static String ltrim(final String str, final char filler)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w. j a v a2 s . c o m * Performs left trim * * @param str * @param filler * @return */ public static String ltrim(final String str, final char filler) { // TODO: Performasi arttirilmali!! if (str == null) return null; for (int i = 0; i < str.length(); ++i) { if (str.charAt(i) != filler) { return str.substring(i); } } return ""; } }