Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "DP QC STRREPLACE"

From Quake Wiki

(New page: Builtin definitions: <pre> string(string search, string replace, string subject) strreplace = #484; string(string search, string replace, string subject) strireplace = #485; </pre> strrep...)
 
 
Line 8: Line 8:
  
 
strireplace does the same but uses case-insensitive matching of the 'search' term.
 
strireplace does the same but uses case-insensitive matching of the 'search' term.
 +
[[Category:DarkPlaces]]

Latest revision as of 02:26, 25 March 2013

Builtin definitions:

string(string search, string replace, string subject) strreplace = #484;
string(string search, string replace, string subject) strireplace = #485;

strreplace replaces all occurrences of 'search' with 'replace' in the string 'subject', and returns the result as a tempstring.

strireplace does the same but uses case-insensitive matching of the 'search' term.