Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
instr function in reverse ???
#1
Here is a bit to knock around.

I have a standard routine I use to find the last occurrence of a character in a string. Happens to be "\".  Using a do loop to search out a string is easy.  Looking to make it faster.  Would it be beneficial, to specify the direction of search in instr function?  Forward or reverse order.

I am think more of an enhancement to instr function.  if it's more trouble than it's worth, I will just continue with what I got.
Reply
#2
you know about _INSTRREV  right?
Reply
#3
https://qb64phoenix.com/qb64wiki/index.php/INSTRREV
Reply
#4
I do now, woohoo.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Function Pointers? BlameTroi 5 236 02-20-2026, 05:55 PM
Last Post: BlameTroi
  The reverse of _droppedfile extended function needed doppler 0 311 09-25-2025, 03:19 PM
Last Post: doppler
  Questions about INSTR Circlotron 7 1,032 04-27-2025, 03:12 PM
Last Post: mdijkens
  function "_ARCSEC()" is wrong? BSpinoza 16 3,429 10-31-2023, 04:23 PM
Last Post: SMcNeill
  TYPE and CONST within SUB/FUNCTION TerryRitchie 9 1,952 07-11-2023, 01:22 AM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)