Uh oh!
There was an error while loading. Please reload this page.
Document LTR vs RTL wrt trim_* - #31202
Conversation
rust-highfive
commented
Jan 26, 2016
r? @gankro (rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
Jan 26, 2016
Perhaps LTR and RTL could be expanded? Took me a second to figure out what that meant. Or it may be canonical enough and I could just be ignorant. r=me either way! |
huonw
commented
Jan 26, 2016
I'm not sure this should close #30459: on one hand, it's as good as we can do wrt that issue for now, but, on the other, it'll be easier to lose track of it once we do get the tooling if the issue is closed. Thoughts? |
steveklabnik
commented
Jan 26, 2016
I'm not sure either... they're canonical for people who talk about text, but do we want to assume that? I'm not sure. @SimonSapin what do you think?
Ah, that's true. I guess I was seeing it through the docs lens, but you're probably right. |
SimonSapin
commented
Jan 26, 2016
I agree that not every reader of the docs is necessarily familiar with these acronyms, and not using them is easy here. “LTR vs RTL” could be replaced with “Text directionality” for example. |
SimonSapin
commented
Jan 26, 2016
And yes, not everyone is familiar with text directionality either, but it’s less obscure than acronyms and explained below. |
steveklabnik
commented
Jan 26, 2016
@bors: r=alexcrichton rollup |
The doc part of rust-lang#30459
nodakai
commented
Jan 30, 2016
Can you add several doctests? For example, according to Wikipedia, a Hebrew word for Hebrew (language) is "עברית" and its romanization is "ivrit". Its last character is "ת" aka "tav" which corresponds to a roman alphabet "t". fnf(s:&str,fc:char,lc:char){assert!(fc == s.trim_left().chars().next().unwrap());assert!(lc == s.trim_right().chars().last().unwrap());}fnmain(){f(" English ",'E','h');f(" עברית ",'ע','ת');} |
steveklabnik
commented
Feb 1, 2016
re- r? @alexcrichton I've added the doc tests that @nodakai asked about 👍 |
alexcrichton
commented
Feb 1, 2016
Fixesrust-lang#30459 Fun fact: i wanted to write "Arabic" and "Hebrew" in Arabic and Hebrew, but vim kept doing the copy/paste in the wrong direction.
steveklabnik
commented
Feb 2, 2016
@bors: r=alexcrichton rollup I did a dumb thing, and it's fixed now. |
bors
commented
Feb 2, 2016
📌 Commit c0ace5d has been approved by |
Fixesrust-lang#30459 Fun fact: i wanted to write "Arabic" and "Hebrew" in Arabic and Hebrew, but vim kept doing the copy/paste in the wrong direction.
Fixes#30459
Fun fact: i wanted to write "Arabic" and "Hebrew" in Arabic and Hebrew, but vim kept doing the copy/paste in the wrong direction.