public static regionMatches ( String orig, bool ignoreCase, int toffset, String other, int ooffset, int len ) : bool | ||
orig | String | |
ignoreCase | bool | |
toffset | int | |
other | String | |
ooffset | int | |
len | int | |
리턴 | bool |
private bool isIncluded(String hosts, String host) { int i = 0; int hostlen = host.Length; int hostslen = hosts.Length; int j; while (i < hostslen) { j = hosts.IndexOf(',', i); if (j == -1) { if (hostlen != hostslen - i) { return(false); } return(Util.regionMatches(hosts, true, i, host, 0, hostlen)); //return hosts.substring(i).equals(host); } if (hostlen == (j - i)) { if (Util.regionMatches(hosts, true, i, host, 0, hostlen)) { return(true); } //if(hosts.substring(i, i+hostlen).equals(host)) return true; } i = j + 1; } return(false); }