[疑难] D2.052中的std.string.replace函数是不是没有了?

sinpool 2011-05-21
今天练习string的编程时,
想使用replace替换部分字符串,
结果发现,
在D2.052中,
好像std.string.replace这个函数没有了。

难道我下载的D2.052“基因变异”了?
betty_betty2008 2011-05-21
Symbol Comment

cmp Moved to std.algorithm.cmp and generalized to work for all input ranges and accept a custom predicate.

count Moved to std.algorithm.count and generalized to accept a custom predicate.

replace Moved to std.array.replace.

ByCodeUnit Removed.

insert Use std.array.insert instead.

join Use std.array.join instead.

repeat Use std.array.replicate instead.

replace Use std.array.replace instead.
replaceSlice Use std.array.replace instead.

split Use std.array.split instead.
sinpool 2011-05-21
哦~~~~~
原来是这样呀。

引用

IMPORTANT NOTE: Beginning with version 2.052, the following symbols have been generalized beyond strings and moved to different modules.


谢谢。
Global site tag (gtag.js) - Google Analytics