Articles Posted by the Author:

  • reserve()

    reserve()

    Description The String reserve() function allows you to allocate a buffer in memory for manipulating strings. Syntax string.reserve(size) Parameters string : a variable of type String size : unsigned int declaring the number of bytes in memory to save for string manipulation Returns none Example See also - String Language Reference Home The text of […]


  • replace()

    replace()

    Description The String replace() function allows you to replace all instances of a given character with another character. You can also use replace to replace substrings of a string with a different substring. Syntax string.replace(substring1, substring2) Parameters string : a variable of type String substring1 : another variable of type String substring2 : another variable […]


  • length()

    length()

    Description Returns the length of the String, in characters. (Note that this doesn’t include a trailing null character.) Syntax string.length() Parameters string : a variable of type String Returns The length of the String in characters. Example - StringLengthTrim Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, […]


  • lastIndexOf()

    lastIndexOf()

    Description Locates a character or String within another String. By default, searches from the end of the String, but can also work backwards from a given index, allowing for the locating of all instances of the character or String. Syntax string.lastIndexOf(val) string.lastIndexOf(val, from) Parameters string : a variable of type String val : the value […]


  • indexOf()

    indexOf()

    Description Locates a character or String within another String. By default, searches from the beginning of the String, but can also start from a given index, allowing for the locating of all instances of the character or String. Syntax string.indexOf(val) string.indexOf(val, from) Parameters string : a variable of type String val : the value to […]


  • getBytes()

    getBytes()

    Description Copies the string’s characters to the supplied buffer. Syntax string.getBytes(buf, len) Parameters string : a variable of type String buf : the buffer to copy the characters into (byte []) len : the size of the buffer (unsigned int) Returns None See also - String - toCharArray() Language Reference Home The text of the […]


  • equalsIgnoreCase()

    equalsIgnoreCase()

    Description Compares two strings for equality. The comparison is not case-sensitive, meaning the String(“hello”) is equal to the String(“HELLO”). Syntax string.equalsIgnoreCase(string2) Parameters string : a variable of type String string2 : another variable of type String Returns true: if string equals string2 (ignoring case) false: otherwise Example - StringComparisonOperators See also - String - equals() […]


  • equals()

    equals()

    Description Compares two strings for equality. The comparison is case-sensitive, meaning the String “hello” is not equal to the String “HELLO”. Syntax string.equals(string2) Parameters string : a variable of type String string2 : another variable of type String Returns true: if string equals string2 false: otherwise Example - StringComparisonOperators See also - String - equalsIgnoreCase() […]


  • endsWith()

    endsWith()

    Description Tests whether or not a String ends with the characters of another String. Syntax string.endsWith(string2) Parameters string: a variable of type String string2: another variable of type String Returns true: if string ends with the characters of string2 false: otherwise Example - StringStartsWithEndsWith See also - String - startsWith() Language Reference Home The text […]


  • concat()

    concat()

    Description Combines, or concatenates two strings into one new String. The second string is appended to the first. Syntax string.concat(string2) Parameters string, string2: variables of type String Example - StringAppendOperator See also - String - String Addition operator Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and […]