String - object

From Microduino Wiki
Jump to: navigation, search

String -object String allows you to realize more complex text operations than using character arrays. You can connect strings, add strings, find and replace substrings and other operations. It need more memory than using a simple char array, and more convenient.

For reference only. String array is represented by lowercase string while the instance of class String is usually represented by uppercase String . Pay attention to that the char constant specified in “double quotation marks” is usually taken as char array, rather than instance of class String.

  • Function
String
charAt()
compareTo()
concat()
endsWith()
equals()
equalsIgnoreCase()
GetBytes()
indexOf()
lastIndexOf
length
replace()
setCharAt()
startsWith()
substring()
toCharArray()
toLowerCase()
toUpperCase()
trim()
 
  • Operators

[](element access)

+(cascade)

==(compare)

  • Example
StringConstructors
StringAdditionOperator
StringIndexOf
StringAppendOperator
StringLengthTrim
StringCaseChanges
StringReplace
StringCharacters
StringStartsWithEndsWith
StringComparisonOperators
StringSubstring
 

[Return to Arduino Syntax Manual]