substr.2

tmi2_fluffos_v2/lib/doc/functions/simul_efuns/substr.2 · 924 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

SUBSTR(2)                 SYSTEM CALLS                  SUBSTR(2)

NAME
     substr - "does search & replace in a string

SYNOPSIS
     string substr(string str, string match, string replace);

DESCRIPTION
     From Sulam's comments in the original file:

     This function recursively replaces a key with a string.

     Variables: str      The text  that  needs  formatting  match
     The  key  that  is getting replaced replace  What to replace
     match with Returns: The string we end up with.

     Note: this is very similar to replace_string().  As they are
     both slightly different, they are both here until a suitable
     solution can be found.

     EXAMPLE:
        substr("abcbdbebf", "b", "-") returns "a-c-d-e-f"

SEE ALSO
     replace_string().

AUTHOR
     Ichabod@TMI, 3/12/93  (based  on  Sulam's  comments  in  the
     file).


MudOS Release 0.9         Last change:                   3-19-93

Site Stats

Snippets: 1791
Codebases: 571