Phobos strings versus C++ Boost

Tobias Pankrath tobias at pankrath.net
Sun Jan 12 04:48:04 PST 2014


On Saturday, 11 January 2014 at 21:42:46 UTC, Dmitry Olshansky 
wrote:
> 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.

More important than the absolute amount of "bad sheep" is the 
frequency of them in your input :-)


More information about the Digitalmars-d mailing list