Top "Indexof" questions

indexof is a method in programming languages like Java, C#, JavaScript, etc.

Hack to convert javascript number to UInt32

Edit: This question is out of date as the Polyfill example has been updated. I'm leaving the question here just …

javascript bit-manipulation operator-keyword indexof uint32
how to fix Object doesn't support property or method 'indexOf'?

i have this situation: if (image.indexOf("/bob/") != -1 || image.indexOf("/grabs/") != -1 || image.indexOf("/") == image.lastIndexOf("/")) { alert('success'); } in …

javascript jquery internet-explorer-8 indexof lastindexof
Cannot convert value of type 'Meme!' to expected argument type '@noescape (Meme) throws -> Bool'

Here is the code: @IBAction func deleteMeme(sender: UIBarButtonItem) { if let foundIndex = MemeRepository.sharedInstance.memes.indexOf(selectedMeme) { //remove the item …

arrays swift indexof
Java: find common characters in two strings

I'm asked to write a program that finds the common characters in two strings using the indexOf(char) method and …

java for-loop char indexof charat
IndexOf method returns 0 when it should had return -1 in C# / Java

A friend of mine came to me with this strange behavior which i can't explain, any insight view would be …

c# java string logic indexof
string.IndexOf search for whole word match

I am seeking a way to search a string for an exact match or whole word match. RegEx.Match and …

c# regex string substring indexof
JQuery if/else statement matching a wildcard CSS name

I'm trying to write an if/else statement in JQuery which can change an element's class by matching 'IN' or …

jquery class if-statement wildcard indexof
StringUtil indexOf() equivalent postgreSQL query

I need to implement stringUtils Class indexOf() method in postgresql. Lets say I have a table in which url is …

java postgresql indexof string-utils
ArrayList-style indexOf for std::vector in c++?

i'm coming into C++ from Java, and have a common design situation in which i have an element (a non-primitive) …

c++ vector element indexof
Swift Cannot invoke 'find' with an argument list of type '([Score], Score)' where Score is a struct

While find(["a", "b"], "c") works with no problems, I get an error when trying to find the index of …

arrays swift find indexof