Skip to content

Commit

Permalink
Add xrefs between upper, lower, and titlecase (#37372)
Browse files Browse the repository at this point in the history

* Add `iscased` to docs

* Remove xrefs to unexported `iscased`
  • Loading branch information
nickrobinson251 authored Sep 8, 2020
1 parent dbd3d4c commit f13e11c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions base/strings/unicode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ Tests whether a character is a lowercase letter.
A character is classified as lowercase if it belongs to Unicode category Ll,
Letter: Lowercase.
See also: [`isuppercase`](@ref).
# Examples
```jldoctest
julia> islowercase('α')
Expand All @@ -307,6 +309,8 @@ Tests whether a character is an uppercase letter.
A character is classified as uppercase if it belongs to Unicode category Lu,
Letter: Uppercase, or Lt, Letter: Titlecase.
See also: [`islowercase`](@ref).
# Examples
```jldoctest
julia> isuppercase('γ')
Expand All @@ -328,6 +332,8 @@ end
iscased(c::AbstractChar) -> Bool
Tests whether a character is cased, i.e. is lower-, upper- or title-cased.
See also: [`islowercase`](@ref), [`isuppercase`](@ref).
"""
function iscased(c::AbstractChar)
cat = category_code(c)
Expand Down Expand Up @@ -513,6 +519,8 @@ isxdigit(c::AbstractChar) = '0'<=c<='9' || 'a'<=c<='f' || 'A'<=c<='F'
Return `s` with all characters converted to uppercase.
See also: [`lowercase`](@ref), [`titlecase`](@ref), [`uppercasefirst`](@ref).
# Examples
```jldoctest
julia> uppercase("Julia")
Expand All @@ -526,6 +534,8 @@ uppercase(s::AbstractString) = map(uppercase, s)
Return `s` with all characters converted to lowercase.
See also: [`uppercase`](@ref), [`titlecase`](@ref), [`lowercasefirst`](@ref).
# Examples
```jldoctest
julia> lowercase("STRINGS AND THINGS")
Expand All @@ -546,6 +556,8 @@ which characters should be considered as word separators.
See also [`uppercasefirst`](@ref) to capitalize only the first
character in `s`.
See also: [`uppercase`](@ref), [`lowercase`](@ref), [`uppercasefirst`](@ref).
# Examples
```jldoctest
julia> titlecase("the JULIA programming language")
Expand Down

0 comments on commit f13e11c

Please sign in to comment.