Here you can find the source of startsWithIgnoreCase(String searchIn, int startAt, String searchFor)
Parameter | Description |
---|---|
searchIn | the string to search in |
startAt | the position to start at |
searchFor | the string to search for |
public static boolean startsWithIgnoreCase(String searchIn, int startAt, String searchFor)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w .java 2 s . c om * Determines whether or not the string 'searchIn' contains the string * 'searchFor', dis-regarding case starting at 'startAt' Shorthand for a * String.regionMatch(...) * * @param searchIn the string to search in * @param startAt the position to start at * @param searchFor the string to search for * @return whether searchIn starts with searchFor, ignoring case */ public static boolean startsWithIgnoreCase(String searchIn, int startAt, String searchFor) { return searchIn.regionMatches(true, startAt, searchFor, 0, searchFor.length()); } }