result Tizen::Base::String::IndexOf ( const String & str, int startIndex, int & indexOf ) const

result Tizen::Base::String::IndexOf ( const String & str, int startIndex, int & indexOf ) const

BY 10 Jan 2014 Native Application Development

Can’t seem to get String.IndexOf() to work.  Compiler keeps saying “no matching member function for call to ‘IndexOf'”  

Here’s the definition from the documentation: 

result Tizen::Base::String::IndexOf    (    const String &     str, int     startIndex, int &     indexOf  )         const

here’s the code i’m trying: 

 

int i;

const String string1 = "abcdefg";

const String string2 = "bcd";

string1.IndexOf(&string2, 0, &i);

 

Written by