Developer   API   Core & System   String

  •  Config(0)
  •  Properties(3)
  •  Methods(32)
  •  Events(0)

String(native)

Text string.

Properties

  • [begin..end] : Integer
    Creates string slice contained characters from start index and up to but not included end index
  • [index] : Integer
    Code of character at the index position, Read-write index accessor. Zero-based index
  • length : Integer
    Number of characters in the string.

Methods

  • $(..) : String
    Returns composed string. Note, this is a "stringizer" method.
  • charAt(index) : String
    Get character on index position.
  • charCodeAt(index) : Integer
    Returns (Uni)code of character at index position.
  • concat(string1 [, string2 [, ... [, stringN]]]]) : String
    Creates string consisting from concatenated arguments: self + string1 + string2 + string3 + ... + stringN.
  • endsWith(str) : Boolean
    Determines whether the start of this string instance matches the specified string.
  • fromCharCode([code1[, code2[, ...[, codeN]]]]) : String
    Creates string build from character with given integer codes.
  • htmlEscape() : String
    Replace each < > & " or ' character by < > & " or ' sequence.
  • htmlUnescape() : String
    Restores html-escape string.
  • indexOf(substring [, start]) : Integer
    Searches this string for text in substring.
  • lastIndexOf(substring [, start]) : Integer
    Searches this string for text in substring.
  • localeCompare(what) : Integer
    Compares this string with what string using lexicographic character order.
  • match(regexp|str) : String|RegExp
    Returns fragment(s) of the string which satisfy regexp or returns RegExp object instance which satisfy string pattern.
  • printf(format, [value1[, value2[, ...[, valueN]]]]) : String
    Creates string formatted by the rules of sprintf C/C++ function.
  • replace(regexp, replaceBy) : String
    Replaces all fragments satisfying regexp by replaceBy.
  • scanf(format) : Array
    with wildcard (like %[a-z] ) extensions.
  • search(regexp) : Integer
    Returns index of first occurence of string fragment satisfying regexp or -1 if not found.
  • split(separator[, limit]) : String
    Splits the string separated on components by separator.
  • startsWith(str) : Boolean
    Determines whether the beginning of this string instance matches the specified string.
  • substr(start [, length]) : String
    Creates string beginning by start index with required length.
  • substring(start[, end]) : String
    Creates string slice consisting from characters starting from start index and up to but not included end indexes.
  • toFloat(defaultValue = undefined) : Float
    Tries to parse content of the string. If parsing failed then returns defaultValue if provided, or undefined value.
  • toHtmlString() : String
    Returns string escaped by html rules. Is an alias of the htmlEscape() method.
  • toInteger(defaultValue = undefined) : Integer
    Tries to parse content of the string. If parsing failed then returns defaultValue if provided, or undefined value.
  • toLowerCase() : String
    Creates lower case copy of the string.
  • toNumber(defaultValue = undefined) : Integer
    Tries to parse the string into either float or integer value.
  • toString() : String
    Returns string itself.
  • toSymbol() : Symbol
    Converts string to symbol.
  • toUpperCase() : String
    Creates upper case copy of the string.
  • toUrlString() : String
    Returns string escaped by url rules. Is an alias of the urlEscape() method.
  • trim(side = #all) : String
    Creates copy of the string with spaces removed.
  • urlEscape() : String
    Creates url-escaped copy of the string if it contains characters need to be escaped or string itself if there are no such characters.
  • urlUnescape() : String
    Restores url-escaped string.
API Navigation
Skip Navigation Links.
Expand <span>User Interface</span> User Interface
Collapse <span>Core & System</span> Core & System
System
Object
Integer
Float
String
Date
Math
Array
RegExp
Global
Function
Timer
Expand <span>Graphics</span> Graphics
Expand <span>Files and Databases</span> Files and Databases
Expand <span>Crypto</span> Crypto
Expand <span>Native User Interface</span> Native User Interface
Expand <span>Net</span> Net
Expand <span>Media</span> Media
Expand <span>Sensor</span> Sensor
Expand <span>Game Development</span> Game Development