|
1 |
| ---- |
2 |
| -title: "isUpperCase()" |
3 |
| -categories: [ "Functions" ] |
4 |
| -subCategories: [ "Characters" ] |
5 |
| ---- |
6 |
| - |
7 |
| - |
8 |
| - |
9 |
| - |
10 |
| - |
11 |
| -= isUpperCase(thisChar) |
12 |
| - |
13 |
| - |
14 |
| -// OVERVIEW SECTION STARTS |
15 |
| -[#overview] |
16 |
| --- |
17 |
| - |
18 |
| -[float] |
19 |
| -=== Description |
20 |
| -Analyse if a char is upper case (that is a letter in upper case). Returns true if thisChar is upper case. |
21 |
| -[%hardbreaks] |
22 |
| - |
23 |
| - |
24 |
| -[float] |
25 |
| -=== Syntax |
26 |
| -[source,arduino] |
27 |
| ----- |
28 |
| -`isUpperCase(thisChar)` |
29 |
| ----- |
30 |
| - |
31 |
| -[float] |
32 |
| -=== Parameters |
33 |
| -`thisChar`: variable. *Allowed data types:* char |
34 |
| - |
35 |
| -[float] |
36 |
| -=== Returns |
37 |
| -`true`: if thisChar is upper case. |
38 |
| - |
39 |
| --- |
40 |
| -// OVERVIEW SECTION ENDS |
41 |
| - |
42 |
| - |
43 |
| - |
44 |
| -// HOW TO USE SECTION STARTS |
45 |
| -[#howtouse] |
46 |
| --- |
47 |
| - |
48 |
| -[float] |
49 |
| -=== Example Code |
50 |
| - |
51 |
| -[source,arduino] |
52 |
| ----- |
53 |
| -if (isUpperCase(this)) // tests if this is an upeer case letter |
54 |
| -{ |
55 |
| - Serial.println("The character is upper case"); |
56 |
| -} |
57 |
| -else |
58 |
| -{ |
59 |
| - Serial.println("The character is not upper case"); |
60 |
| -} |
61 |
| -
|
62 |
| ----- |
63 |
| - |
64 |
| --- |
65 |
| -// HOW TO USE SECTION ENDS |
66 |
| - |
67 |
| - |
68 |
| -// SEE ALSO SECTION |
69 |
| -[#see_also] |
70 |
| --- |
71 |
| - |
72 |
| -[float] |
73 |
| -=== See also |
74 |
| - |
75 |
| -[role="language"] |
76 |
| -* #LANGUAGE# link:../../../variables/data-types/char[char] |
77 |
| -* #LANGUAGE# link:../../../structure/control-structure/if[if (conditional operators)] |
78 |
| -* #LANGUAGE# link:../../../structure/control-structure/while[while (conditional operators)] |
79 |
| -* #LANGUAGE# link:../../communication/serial/read[read()] |
80 |
| - |
81 |
| --- |
82 |
| -// SEE ALSO SECTION ENDS |
| 1 | +--- |
| 2 | +title: "isUpperCase()" |
| 3 | +categories: [ "Functions" ] |
| 4 | +subCategories: [ "Characters" ] |
| 5 | +--- |
| 6 | + |
| 7 | += isUpperCase(thisChar) |
| 8 | + |
| 9 | + |
| 10 | +// OVERVIEW SECTION STARTS |
| 11 | +[#overview] |
| 12 | +-- |
| 13 | + |
| 14 | +[float] |
| 15 | +=== Description |
| 16 | +Analyse if a char is upper case (that is, a letter in upper case). Returns true if thisChar is upper case. |
| 17 | +[%hardbreaks] |
| 18 | + |
| 19 | + |
| 20 | +[float] |
| 21 | +=== Syntax |
| 22 | +[source,arduino] |
| 23 | +---- |
| 24 | +`isUpperCase(thisChar)` |
| 25 | +---- |
| 26 | + |
| 27 | +[float] |
| 28 | +=== Parameters |
| 29 | +`thisChar`: variable. *Allowed data types:* char |
| 30 | + |
| 31 | +[float] |
| 32 | +=== Returns |
| 33 | +`true`: if thisChar is upper case. |
| 34 | + |
| 35 | +-- |
| 36 | +// OVERVIEW SECTION ENDS |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +// HOW TO USE SECTION STARTS |
| 41 | +[#howtouse] |
| 42 | +-- |
| 43 | + |
| 44 | +[float] |
| 45 | +=== Example Code |
| 46 | + |
| 47 | +[source,arduino] |
| 48 | +---- |
| 49 | +if (isUpperCase(this)) // tests if this is an upper case letter |
| 50 | +{ |
| 51 | + Serial.println("The character is upper case"); |
| 52 | +} |
| 53 | +else |
| 54 | +{ |
| 55 | + Serial.println("The character is not upper case"); |
| 56 | +} |
| 57 | +
|
| 58 | +---- |
| 59 | + |
| 60 | +-- |
| 61 | +// HOW TO USE SECTION ENDS |
| 62 | + |
| 63 | + |
| 64 | +// SEE ALSO SECTION |
| 65 | +[#see_also] |
| 66 | +-- |
| 67 | + |
| 68 | +[float] |
| 69 | +=== See also |
| 70 | + |
| 71 | +[role="language"] |
| 72 | +* #LANGUAGE# link:../../../variables/data-types/char[char] |
| 73 | +* #LANGUAGE# link:../../../structure/control-structure/if[if (conditional operators)] |
| 74 | +* #LANGUAGE# link:../../../structure/control-structure/while[while (conditional operators)] |
| 75 | +* #LANGUAGE# link:../../communication/serial/read[read()] |
| 76 | + |
| 77 | +-- |
| 78 | +// SEE ALSO SECTION ENDS |
0 commit comments