isUpperCase

Summary

Checks if the alphabetical characters in the string are uppercase letters.

Usage

public bool isUpperCase()

Returns

A Boolean value indicating whether the string's alphabetical characters are all uppercase letters: true if all alphabetical characters in the string are uppercase letters or false if the string contains at least one non-uppercase letter.

Description

Checks if the string is composed of only uppercase alphabetical letters (A-Z).

Examples

Basic Usage
1
2
3
4
5
6
7
8
9
import System;
 
string foo = "FOO";
string bar = "Bar";
string baz = "baz";
 
Console.log(foo.isUpperCase()); // true
Console.log(bar.isUpperCase()); // false
Console.log(baz.isUpperCase()); // false

Share

HTML | BBCode | Direct Link