Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upClarify isUpper and isLower use ASCII #385
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Nov 19, 2015
Member
What do you think of using this approach instead? Looks like we could capture unicode stuff as well, but honestly, I'm not 100% sure what that means in practice.
|
What do you think of using this approach instead? Looks like we could capture unicode stuff as well, but honestly, I'm not 100% sure what that means in practice. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jan 18, 2016
Contributor
I'm going to merge the documentation change here. It is a fact that the current implementations of isUpper and isLower work only for ASCII characters. Making them work for unicode characters would be a separate issue. Right now, the documentation should state the correct thing, which this PR achieves.
|
I'm going to merge the documentation change here. It is a fact that the current implementations of |
added a commit
that referenced
this pull request
Jan 18, 2016
jvoigtlaender
merged commit d791918
into
elm:master
Jan 18, 2016
1 check failed
jvoigtlaender
referenced this pull request
Jan 18, 2016
Closed
Make isUpper and isLower work for non-ASCII letters? #489
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rofrol
May 27, 2016
@evancz I like this approach better http://stackoverflow.com/questions/1027224/how-can-i-test-if-a-letter-in-a-string-is-uppercase-or-lowercase-using-javascrip/9728437#9728437
And here is a quick workaround in elm:
isUpper: Char -> Bool
isUpper c =
let
s = String.fromChar c
in
s == String.toUpper s && s /= String.toLower s
isLower: Char -> Bool
isLower c =
let
s = String.fromChar c
in
s /= String.toUpper s && s == String.toLower s
rofrol
commented
May 27, 2016
|
@evancz I like this approach better http://stackoverflow.com/questions/1027224/how-can-i-test-if-a-letter-in-a-string-is-uppercase-or-lowercase-using-javascrip/9728437#9728437 And here is a quick workaround in elm:
|
ianbollinger commentedSep 1, 2015
Clarify that
Char.isUpperandChar.isLoweronly recognize ASCII letters.