名称：
	replace_string - 用其他字串替换一个字串中符合条件的字串。
语法：
	string replace_string( string str, string pattern, string replace );
	string replace_string( string str, string pattern, string replace, 
		int max );
	string replace_string( string str, string pattern, string replace, 
		int first, int last );

	字串 replace_string( 字串 字串, 字串 样式, 字串 替换 );
	字串 replace_string( 字串 字串, 字串 样式, 字串 替换,
		整数 最多次 );
	字串 replace_string( 字串 字串, 字串 样式, 字串 替换,
		整数 第一个, 整数 最后 );
用法：
	replace_string() 将“str”中所有的“pattern”替换成“replace”。如
	果“pattern”的长度为零，就传回原来的“str”。如果传回的字串超过系
	统定义的最大字串长度，则传回一个 undefindp() 为 1，stringp() 为 0 
	的值。

	replace_string() 可以藉由长度为零的“replace”除去字串中的
	“pattern”。举例来说：replace_string(" 1 2 3 ", " ", "") 会传回 
	"123"。replace_string() 执行的速度比使用 explode()／implode() 快。

	第四和第五个参数可以选择〈为了相容于以前的版本〉。这两个附加的参数
	功用如下：

	四个参数：

	指定最多替换几次〈从 1 开始算〉。如果指定为 0，就当作是全部都换。所
	以 replace_string( "xyxx", "x", "z", 2 ) 会传回 "zyzx"。

	五个参数：

	第四个和第五个参数限制符合的范围，限制条件如下：

	* first < 1：从头开始全部替换。
	* last == 0 或 last > 最高符合数 (max_matches)：全部替换到最后。
	* first > last：完全不改变。

	举例：replace_string( "xyxxy", "x", "z", 2, 3 ) 传回 "xyzzy"。
参考：
	sscanf, explode, strsrch
作者：
	Tim Hollebeek  Beek@ZorkMUD, Lima Bean, IdeaExchange, and elsewhere
翻译：
	spock@muds.net		2000.Aug.28.	v22 版
