0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

c++ builder XE4, 10.2 Tokyo > 文字がUpperCaseかどうか > if (UpCase(code) == code) {

Last updated at Posted at 2016-01-17
動作確認
C++ Builder XE4 on Windows 7 pro
Rad Studio 10.2 Tokyo Update 2 (追記: 2017/12/27)

char型の個々の文字がUpperCaseかどうかの確認にはUpCase()という関数があるようだ。

upper := a = UpCase(a); // True

C++ Builderでのヘルプでは

UpCase 関数は Ch を大文字に変換します。

以下のように使えばよさそうだ

if (UpCase(code) == code) {
...
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?