Skip to content

Commit 0674371

Browse files
author
smellai
committed
added characters subcategories, Fixes #60
1 parent 95acbee commit 0674371

13 files changed

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

0 commit comments

Comments
 (0)