Returns whether this contains `substring` or not.
493306
public boolean contains(final UTF8String substring) {
    if (substring.numBytes == 0) {
      return true;
    }

    byte first = substring.getByte(0);
    for (int i = 0; i <= numBytes - substring.numBytes; i++) {
      if (getByte(i) == first && matchAt(substring, i)) {
        return true;
      }
    }
    return false;
  }
148872
function contains(str) {
    return {
        hiragana: hasHiragana(str),
        katakana: hasKatakana(str),
        kanji: hasKanji(str)
    };
}
175421
function containsString(query, node) {
  var value = node[query.name]
  return typeof value === 'string' && value.indexOf(query.value) !== -1
}
665853
public ServerFilter descriptionContains(String... subStrings) {
        allItemsNotNull(subStrings, "Description keywords");

        predicate = predicate.and(combine(
            ServerMetadata::getDescription, in(asList(subStrings), Predicates::containsIgnoreCase)
        ));

        return this;
    }
842719
public TemplateFilter descriptionContains(String... substrings) {
        allItemsNotNull(substrings, "Template description substrings");

        predicate = predicate.and(combine(
            TemplateMetadata::getDescription, in(asList(substrings), Predicates::containsIgnoreCase)
        ));

        return this;
    }
61764
public static int contains(String str, String[] arr)
    {
        if ( arr == null ) {
            return -1;
        }
        
        for ( int i = 0; i < arr.length; i++ ) {
            if ( arr[i].contains(str) ) {
                return i;
            }
        }
        
        return -1;
    }
368333
public boolean containsPrefixOf(String s) {
        SortedSet<String> sub = headSet(s);
        // because redundant prefixes have been eliminated,
        // only a test against last item in headSet is necessary
        if (!sub.isEmpty() && s.startsWith((String)sub.last())) {
            return true; // prefix substring exists
        } // else: might still exist exactly (headSet does not contain boundary)
        return contains(s); // exact string exists, or no prefix is there
    }
631444
def anyword_substring_search(target_words, query_words):
    

    matches_required = len(query_words)
    matches_found = 0

    for query_word in query_words:

        reply = anyword_substring_search_inner(query_word, target_words)

        if reply is not False:

            matches_found += 1

        else:
            # this is imp, otherwise will keep checking
            # when the final answer is already False
            return False

    if(matches_found == matches_required):
        return True
    else:
        return False
1326413
public final boolean contains(String s)
  {

    if (null == s)
      return false;

    for (int i = 0; i < m_firstFree; i++)
    {
      if (m_map[i].equals(s))
        return true;
    }

    return false;
  }
144185
function containsPath(self, dirname) {
  return self.__paths__.some(function(p) {
    return p === dirname.substr(0, p.length);
  });
}
463830
public static function contains($string = false, $substring = false) {

        if ($substring && $substring && strpos($string, $substring) !== false) {

            return true;
        }

        return false;
    }
58081
def _is_string(thing):
    
    if (_py3k and isinstance(thing, str)):
        return True
    if (not _py3k and isinstance(thing, basestring)):
        return True
    return False
704156
public static boolean isStop(String str) {
		if (str.compareTo(".") == 0) {
		    return true;
		}
	
		if (str.compareTo("?") == 0) {
		    return true;
		}
		
		if (str.compareTo("!") == 0) {
		    return true;
		}
		
		return false;
    }
812418
def contains(self, url: str):
        ''''''

        try:
            self.get_one(url)
        except NotFound:
            return False
        else:
            return True
366759
private static boolean contains_(String scl) {
		// Valid for all
		if (scl.charAt(0) == 'T' && scl.charAt(1) == '*'
				&& scl.charAt(2) == '*' && scl.charAt(3) == '*'
				&& scl.charAt(4) == '*' && scl.charAt(5) == '*'
				&& scl.charAt(6) == 'F' && scl.charAt(7) == 'F'
				&& scl.charAt(8) == '*')
			return true;

		return false;
	}
75595
public boolean contains(char c) {
        for (int k = pos; k < len; k++) {
            if (chars[k] == c) return true;
        }
        return false;
    }
108877
private boolean containsAll(String s, int i) {
        if (i >= s.length()) {
            return true;
        }
        int  cp= UTF16.charAt(s, i);
        if (contains(cp) && containsAll(s, i+UTF16.getCharCount(cp))) {
            return true;
        }
        for (String setStr : strings) {
            if (s.startsWith(setStr, i) &&  containsAll(s, i+setStr.length())) {
                return true;
            }
        }
        return false;

    }