Hi, I have 2 String Operations I would need relevant in Object C
// Get the newstring from mystring start at counter
Java: newstring = mystring.substring(counter)
OBJ-C: ?
// Get the position from searchstring in mystring
Java: startpos = mystring.indexOf(searchstring)
ObJ-C: ?
Would be great you can help
Thx chris
Edit: I had two other questions and found now the solution (here als for others)
// Get the Position from searchstring in mystring starting at startfrom
Java: location = mystring.indexof(searchfor,startfrom)
OBJ-C: location = [mystring rangeOfString:searchfor options:NSCaseInsensitiveSearch range:NSMakeRange(startfrom, mystring.length-startfrom)].location;
// Get the newstring from mystring start at x and end at y
Java: newstring = mystring.substring(x,y)
OBJ-C: newstring = [mystring substringWithRange:NSMakeRange(x,y-x)];