eliminate junk from std.string?

Max Samukha spambox at d-coding.com
Tue Jan 11 12:25:52 PST 2011


On 01/11/2011 08:18 PM, Nick Sabalausky wrote:
> "Max Samukha"<spambox at d-coding.com>  wrote in message
> news:ighvca$api$1 at digitalmars.com...
>> On 01/11/2011 05:36 PM, Ary Borenszweig wrote:
>>> Yes, what I meant was that the names are stripl and stripr yet the
>>> description of
>>> those functions are strip leading and strip trailing... at least put
>>> strip left
>>> and string right on the description so it matches the names.
>>
>> Sorry for misunderstanding.
>>
>> I don't think that the description needs to match the names literally.
>> However, I would aviod "trailing" and "leading", because in RTL
>> environments they can have the opposite meaning.
>
> I would have thought RTL languages got stored as RTL. If so, then "leading"
> and "trailing" would be correct and "left"/"right" would be wrong (unless
> the internal behavior of stripl and stripr takes language-direction into
> account, which would surprise me).
>
>

AFAIK, there is no universal standard on storing RTL text. There are 
recommendations to prefer logical order over visual order because visual 
order is extremely inflexible. I am not an expert in this field and have 
to shut up.


More information about the Digitalmars-d mailing list