Append replacement: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{ #vardefine:name|append_replacement}}{{ #vardefine:return_type|buffer}}{{ FunctionPage| name={{#var:name}}| function_category=| function1={{Function| name={{#var:name}}| aggr…'
 
imported>StDoodle
mNo edit summary
Line 5: Line 5:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=|
function_category=String Handling Routines|


function1={{Function|
function1={{Function|
Line 15: Line 15:
parameter2={{Param|buffer|source}}|
parameter2={{Param|buffer|source}}|
parameter3={{Param|string|replace}}|
parameter3={{Param|string|replace}}|
p1desc={{Pspan|match_at}} is where to make replacements|
p1desc={{Pspan|match_at}} is ?|
p2desc={{Pspan|source}} is the original buffer to make changes to|
p2desc={{Pspan|source}} is the original buffer to replacements in?|
p3desc={{Pspan|replace}} is what to replace matches with|
p3desc={{Pspan|replace}} is what to replace matches with?|
}}|
}}|


function_description=Returns a modified version of {{pspan|source}}, with all valid matches for {{pspan|match_at}} replaced with the text {{pspan|replace}}.|
function_description=Returns a modified version of {{pspan|source}}, with all valid matches for {{pspan|match_at}} replaced with the text {{pspan|replace}}. Maybe?|


needscode=yes|
needscode=yes|

Revision as of 16:35, 12 March 2010

needs(code_samples);

Function Syntax

buffer append_replacement(matcher match_at ,buffer source ,string replace )

  • match_at is ?
  • source is the original buffer to replacements in?
  • replace is what to replace matches with?

Returns a modified version of source, with all valid matches for match_at replaced with the text replace. Maybe?

See Also

append_tail()


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • I have no idea if I'm even close on this one; please check.