Tutorial.StringConstructors History

Hide minor edits - Show changes to markup

August 27, 2015, at 01:09 PM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Changed lines 58-69 from:
to:
August 11, 2015, at 10:59 AM by Simone Maiocchi -
Changed lines 33-34 from:

There is no circuit for this example, though your board must be connected to your computer via USB.

to:

There is no circuit for this example, though your board must be connected to your computer via USB and the serial monitor window of the Arduino Software (IDE) should be open.

Changed lines 60-62 from:
to:


Last revision 2015/08/11 by SM

July 10, 2015, at 01:13 PM by Simone Maiocchi -
Changed line 14 from:

String stringTwo = String("This is a string"); // converting a constant string into a String object

to:

String stringTwo = String("This is a string"); // converting a constant string into a String object

Changed lines 16-21 from:

String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base String stringOne = String(5.698, 3); // using a float and the decimal places

to:

String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base String stringOne = String(5.698, 3); // using a float and the decimal places

July 10, 2015, at 01:10 PM by Simone Maiocchi -
Changed lines 12-21 from:

String stringOne = "Hello String"; // using a constant String String stringOne = String('a'); // converting a constant char into a String String stringTwo = String("This is a string"); // converting a constant string into a String object String stringOne = String(stringTwo + " with more"); // concatenating two strings String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base String stringOne = String(5.698, 3); // using a float and the decimal places

to:

String stringOne = "Hello String"; // using a constant String String stringOne = String('a'); // converting a constant char into a String String stringTwo = String("This is a string"); // converting a constant string into a String object String stringOne = String(stringTwo + " with more"); // concatenating two strings String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base String stringOne = String(5.698, 3); // using a float and the decimal places

July 10, 2015, at 01:04 PM by Simone Maiocchi -
Changed lines 7-8 from:

String Object Constructors

to:

String Object Constructors

July 10, 2015, at 01:04 PM by Simone Maiocchi -
Changed lines 1-2 from:

Examples > Strings

to:
Changed lines 11-13 from:
to:

[@

Changed lines 22-23 from:
to:
Deleted lines 30-36:
Changed lines 33-34 from:

There is no circuit for this example, though your Arduino must be connected to your computer via USB.

to:

There is no circuit for this example, though your board must be connected to your computer via USB.

Changed line 48 from:

See Also:

to:

See Also

Changed lines 60-62 from:
to:
June 01, 2015, at 09:44 AM by Arturo -
Changed lines 10-18 from:

String stringOne = "Hello String"; // using a constant String String stringOne = String('a'); // converting a constant char into a String String stringTwo = String("This is a string"); // converting a constant string into a String object String stringOne = String(stringTwo + " with more");// concatenating two strings String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base

to:

String stringOne = "Hello String"; // using a constant String String stringOne = String('a'); // converting a constant char into a String String stringTwo = String("This is a string"); // converting a constant string into a String object String stringOne = String(stringTwo + " with more"); // concatenating two strings String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base String stringOne = String(5.698, 3); // using a float and the decimal places

May 02, 2012, at 03:56 PM by Scott Fitzgerald -
Changed line 43 from:
to:
November 16, 2011, at 04:24 AM by Scott Fitzgerald -
Changed line 43 from:
to:
September 19, 2010, at 11:41 PM by Christian Cerrito -
Added lines 60-61:
September 19, 2010, at 11:36 PM by Christian Cerrito -
Changed line 25 from:
div class=BOM
)
to:
September 19, 2010, at 11:35 PM by Christian Cerrito -
Deleted lines 6-10:
Changed lines 25-29 from:
to:
Deleted line 30:
Changed lines 32-36 from:

There is no circuit for this example.

to:

There is no circuit for this example, though your Arduino must be connected to your computer via USB.

image developed using Fritzing. For more circuit examples, see the Fritzing project page

September 16, 2010, at 10:48 PM by Tom Igoe -
September 16, 2010, at 10:47 PM by Tom Igoe -
Changed lines 15-23 from:

String stringOne = "Hello String"; // using a constant String String stringOne = String('a'); // converting a constant char into a String String stringTwo = String("This is a string"); // converting a constant string into a String object String stringOne = String(stringTwo + " with more"); // concatenating two strings String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base

to:

String stringOne = "Hello String"; // using a constant String String stringOne = String('a'); // converting a constant char into a String String stringTwo = String("This is a string"); // converting a constant string into a String object String stringOne = String(stringTwo + " with more");// concatenating two strings String stringOne = String(13); // using a constant integer String stringOne = String(analogRead(0), DEC); // using an int and a base String stringOne = String(45, HEX); // using an int and a base (hexadecimal) String stringOne = String(255, BIN); // using an int and a base (binary) String stringOne = String(millis(), DEC); // using a long and a base

September 16, 2010, at 10:47 PM by Tom Igoe -
Changed line 14 from:

[@

to:
Changed lines 24-25 from:
 @]
to:
Changed line 41 from:
to:
August 01, 2010, at 04:10 PM by Tom Igoe -
Changed lines 1-2 from:

Examples > Control Structures

to:

Examples > Strings

August 01, 2010, at 03:09 PM by Tom Igoe -
Changed lines 37-43 from:
to:
August 01, 2010, at 02:49 PM by Tom Igoe -
Added line 53:
August 01, 2010, at 02:35 PM by Tom Igoe -
Changed lines 5-6 from:

The String object allows you to manipulate strings of text in a variety of useful ways. You can append characters to Strings, combine Strings through concatenation, get the length of a String, search and replace substrings, and more. This tutorial shows you how to initialize String objects.

to:

The String object allows you to manipulate strings of text in a variety of useful ways. You can append characters to Strings, combine Strings through concatenation, get the length of a String, search and replace substrings, and more. This tutorial shows you how to initialize String objects.

Changed lines 28-30 from:

All of these methods are valid ways to declare a String object. They all result in an object containing a string of characters that can be manipulated using any of the String methods.

to:

All of these methods are valid ways to declare a String object. They all result in an object containing a string of characters that can be manipulated using any of the String methods. To see them in action, upload the code below onto an Arduino and open the Serial Monitor. You'll see the results of each declaration. Compare what's printed by each println() to the declaration above it.

Changed line 34 from:
 There is no circuit for this example.
to:

There is no circuit for this example.

Changed line 40 from:
 There is no circuit for this example.
to:

There is no circuit for this example.

Changed lines 49-62 from:
to:
August 01, 2010, at 02:29 PM by Tom Igoe -
Changed lines 1-49 from:
to:
August 01, 2010, at 02:24 PM by Tom Igoe -
Added line 1:

kjlkjlkj

Share