# Isupper is not working

**URL:** <https://discourse.julialang.org/t/isupper-is-not-working/114058>\
**Category:** New to Julia\
**Tags:** question, package\
**Created:** [May 9, 2024, 2:15pm UTC](https://discourse.julialang.org/t/isupper-is-not-working/114058 "2024-05-09T14:15:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xabo](https://avatars.discourse-cdn.com/v4/letter/x/dec6dc/32.png) [@Xabo](https://discourse.julialang.org/u/Xabo)\
**Post date:** [May 9, 2024, 2:15pm UTC](https://discourse.julialang.org/t/isupper-is-not-working/114058/1 "2024-05-09T14:15:36Z")

</div>

Just to make sure that the package is installed even though the Unicode package is in the standard library so I don’t need to add it, I write these simple lines and still does not work:

julia\> using Pkg  
julia\> Pkg.add(“Unicode”)  
…  
julia\> isupper(‘A’)  
ERROR: UndefVarError: `isupper` not defined  
Stacktrace:  
[1] top-level scope  
@ REPL[3]:1  
julia\> using Unicode  
julia\> isupper(‘A’)  
ERROR: UndefVarError: `isupper` not defined  
Stacktrace:  
[1] top-level scope  
@ REPL[5]:1

I just want to make a function that tells me if the word is in all uppercase, like this:

function es\_mayusculas(str::String)  
letras = filter(isletter, str)  
son = isupper(letras)  
return son  
end

---

<div class="post-metadata">

**Author:** ![screw\_dog](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/screw_dog/32/48119_2.png) [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Post date:** [May 9, 2024, 2:18pm UTC](https://discourse.julialang.org/t/isupper-is-not-working/114058/2 "2024-05-09T14:18:21Z")

</div>

The function you want is `isuppercase`. To check if all characters in a string are uppercase use

```julia
all(isuppercase, str)

```

---

<div class="post-metadata">

**Author:** ![Xabo](https://avatars.discourse-cdn.com/v4/letter/x/dec6dc/32.png) [@Xabo](https://discourse.julialang.org/u/Xabo)\
**Post date:** [May 9, 2024, 2:21pm UTC](https://discourse.julialang.org/t/isupper-is-not-working/114058/3 "2024-05-09T14:21:36Z")

</div>

Thanks. So the isupper function no longer works?

---

<div class="post-metadata">

**Author:** ![screw\_dog](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/screw_dog/32/48119_2.png) [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Post date:** [May 9, 2024, 2:25pm UTC](https://discourse.julialang.org/t/isupper-is-not-working/114058/4 "2024-05-09T14:25:20Z")

</div>

It looks like `isupper` was changed to `isuppercase` at around version 0.6, maybe 7 years ago? Not sure, I’ve never seen it before.
