Sheerpower Logo F.2  String Manipulation Functions and Features
Sheerpower provides a large set of string functions and features. See String Manipulation Functions for details. All string functions are optimized for speed.

Strings as buffers Strings can also be used store data into fixed length buffers. Over 30 million string overlays can be processed per second.
For example:
mybuf$ = space$(1024) subtext$ = 'abcde' start_pos = 1 for idx = 1 to 10 start_pos = overlay(mybuf$, subtext$, start_pos) next idx

For high-speed string bulding, Sheerpower includes the JOIN() function. the format is:
new_pos = join(string_var$, string1$, string2$, ...) up to 15 strings at a time.
numbers$ = '' for i = 1 to 100_0000 newlen = join(numbers$, str$(i), ' ') next i print 'Length: '; len(numbers$) print 'Elapsed: '; _elapsed

The code below contains an example of some of the major string functions.

Hide Description

    

       


      

Enter or modify the code below, and then click on RUN

Looking for the full power of Sheerpower?
Check out the Sheerpower website. Free to download. Free to use.
Wide screen