Phobos strings versus C++ Boost
Dmitry Olshansky
dmitry.olsh at gmail.com
Sat Jan 11 13:42:41 PST 2014
12-Jan-2014 01:22, monarch_dodra пишет:
> On Saturday, 11 January 2014 at 20:36:31 UTC, Jacob Carlborg wrote:
>> On 2014-01-11 08:50, Brad Anderson wrote:
>>> The recent discussion got me wondering how Phobos stacked up
>>> against the C++ Boost String Algorithms library.
>>>
>>> Some background on the design of the Boost library:
>>> http://www.boost.org/doc/libs/1_55_0/doc/html/string_algo/design.html
>>>
>>> TL;DR: It works somewhat like ranges.
>>>
>>> Google Spreadsheet with the comparison: http://goo.gl/Wmotu4
>>
>> toLower/Upper doesn't really work in place.
>
> Yeah, "toLowerInplace" is actually more like "toLowerProbablyInPlace"
With high probablity :)
And it's indeed quite high, the amount of "bad sheep" that gets
longer/shorter across the whole Unicode is around 5-10 codepoints IRC.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list