Here you can find the source of startsWithNoCase(String csValue, String csStart)
public static boolean startsWithNoCase(String csValue, String csStart)
//package com.java2s; /*//from w w w . j av a2 s . c o m * JLib - Publicitas Java library v1.2.0. * * Copyright (c) 2005, 2006, 2007, 2008, 2009 Publicitas SA. * Licensed under LGPL (LGPL-LICENSE.txt) license. */ public class Main { public static boolean startsWithNoCase(String csValue, String csStart) { csValue = csValue.toUpperCase(); csStart = csStart.toUpperCase(); return csValue.startsWith(csStart); } public static boolean startsWithNoCase(String csValue, String csStart, int nOffset) { csValue = csValue.toUpperCase(); csStart = csStart.toUpperCase(); return csValue.startsWith(csStart, nOffset); } }