Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
STRING$ empowered with StringPatternFilling
#7
clear your explanation. Very beautyful. I hadn't got time to spend in researching the answer of a question that it arose when I read your code.
(Q: why does he prefer 10? Why each 10 times? I had supposed without verifying that it was because a littler interval (less than 10) whould be ineffective for the time spent for enlarging the string to insert with MID$, while it maybe that a longer interval (more than 10) may loose the fast increasing of speed of the function.)
And this you last post shows me that this is the reason of choice about the value 10.

I think this function (and maybe the other functions that are slower for 0.0X value) can be part of a QB64pe standard library manipulating STRINGs.
Reply


Messages In This Thread
RE: STRING$ empowered with StringPatternFilling - by TempodiBasic - 05-09-2025, 06:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Split String to Array Using Strtok (Attempt #2) SpriggsySpriggs 0 545 12-17-2024, 06:37 PM
Last Post: SpriggsySpriggs
  PrintW - print a long string, breaking it at the last space or hyphen before col. 79 TDarcos 21 4,091 04-22-2024, 09:52 PM
Last Post: Pete
  Fonts from String Patterns bplus 15 3,752 08-30-2023, 03:01 PM
Last Post: grymmjack
  String to Array AtomicSlaughter 1 760 02-13-2023, 10:11 PM
Last Post: mnrvovrfc
  Remove Spaces (or other characters) from a String George McGinn 10 2,965 12-31-2022, 12:21 PM
Last Post: euklides

Forum Jump:


Users browsing this thread: 1 Guest(s)