======String ====== ====Description ==== The String class, part of the core as of version 0019, allows you to use and manipulate strings of text in more complex ways than [[arduino:data types:String| character arrays]] do. You can concatenate Strings, append to them, search for and replace substrings, and more. It takes more memory than a simple character array, but it is also more useful. For reference, character arrays are referred to as strings with a small s, and instances of the String class are referred to as Strings with a capital S. Note that constant strings, specified in "double quotes" are treated as char arrays, not instances of the String class. ====Functions ==== * [[arduino:data types:StringConstructor | String]] * [[arduino:data types:StringCharAt | charAt]] * [[arduino:data types:StringCompareTo | compareTo]] * [[arduino:data types:StringConcat | concat]] * [[arduino:data types:StringEndsWith | endsWith]] * [[arduino:data types:StringEquals | equals]] * [[arduino:data types:StringEqualsIgnoreCase | equalsIgnoreCase]] * [[arduino:data types:StringGetBytes | getBytes]] * [[arduino:data types:StringIndexOf | indexOf]] * [[arduino:data types:StringLastIndexOf | lastIndexOf]] * [[arduino:data types:StringLength | length]] * [[arduino:data types:StringReplace | replace]] * [[arduino:data types:StringSetCharAt | setCharAt]] * [[arduino:data types:StringStartsWith | startsWith]] * [[arduino:data types:StringSubstring | substring]] * [[arduino:data types:StringToCharArray | toCharArray]] * [[arduino:data types:StringToLowerCase | toLowerCase]] * [[arduino:data types:StringToUpperCase | toUpperCase]] * [[arduino:data types:StringTrim | trim]] ====Operators ==== * [[arduino:data types:StringBrackets | [] (element access)]] * [[arduino:data types:StringPlus | + (concatenation)]] * [[arduino:data types:StringComparison | == (comparison)]] ====Examples ==== ====See Also ==== * [[arduino:data types:String]]: character arrays * [[arduino:variable scope and qualifiers:VariableDeclaration|Variable Declaration]] Source: arduino.cc