Difference between revisions of "SHIP:Sail:Functions"

From Serious Documentation
Jump to: navigation, search
(String Functions)
Line 3: Line 3:
  
 
== String Functions ==
 
== String Functions ==
* [[SHIP:Sail:length|length]]
+
* [[SHIP:Sail:charAt|charAt]] - returns the character at an index in a string
* [[SHIP:Sail:toString|toString]]
+
* [[SHIP:Sail:indexOf|indexOf]] - returns the index of the first occurrence of a string in another string
 +
* [[SHIP:Sail:lastIndexOf|lastIndexOf]] - returns the index of the last occurrence of a string in another string
 +
* [[SHIP:Sail:length|length]] - returns the length of a string
 +
* [[SHIP:Sail:subStr|subStr]] - returns the N-character substring of a string starting at an index
 +
* [[SHIP:Sail:subString|subString]] - returns the substring of a string starting at an index and ending at an index
 +
* [[SHIP:Sail:toLowerCase|toLowerCase]] - converts a string to lower case
 +
* [[SHIP:Sail:toUpperCase|toUpperCase]] - converts a string to upper case
 +
* [[SHIP:Sail:toString|toString]] - converts a number to a string
  
 
== Node Functions ==
 
== Node Functions ==
 
* [[SHIP:Sail:getChild|getChild]]
 
* [[SHIP:Sail:getChild|getChild]]
 
* [[SHIP:Sail:getChildCount|getChildCount]]
 
* [[SHIP:Sail:getChildCount|getChildCount]]

Revision as of 12:14, 5 December 2012

SHIP Sail Home

String Functions

  • charAt - returns the character at an index in a string
  • indexOf - returns the index of the first occurrence of a string in another string
  • lastIndexOf - returns the index of the last occurrence of a string in another string
  • length - returns the length of a string
  • subStr - returns the N-character substring of a string starting at an index
  • subString - returns the substring of a string starting at an index and ending at an index
  • toLowerCase - converts a string to lower case
  • toUpperCase - converts a string to upper case
  • toString - converts a number to a string

Node Functions