Core JavaScriptExtendScript only
Object

String

A character string. Each character is adressable by index.

Properties

NameType AccessDescription
Number readonly The length of the string.

Methods

String

Returns a string representation of the value given as an argument.

value Varies A number, variable, or object to convert to a string.
String

Returns a string consisting of this string enclosed in a <a> tag.

name String The text to be stored in the anchors' name attribute.
String

Returns a string consisting of this string enclosed in a <big> tag.

String

Returns a string consisting of this string enclosed in a <b> tag.

String

Returns the character at the specified index.

index Number An integer between 0 and string.length -1, specifying the character to return.
Number

Returns the Unicode value of the character at the given index.

index Number An integer between 0 and string.length -1, specifying the character.
String

If necessary, converts the one or more given values to strings.

value String The values to be concatenated with the given string.
String

Returns a string consisting of this string enclosed in a <tt> tag.

String

Returns a string consisting of this string enclosed in a <font> tag.

color String The value to be stored in the tag's color attribute.
String

Returns a string consisting of this string enclosed in a <font> tag.

size Number The value to be stored in the tag's size attribute.
String

Returns a string created by concatenation one or more characters specified as ASCII values.

value1 Number One or more ASCII values.
Number

Returns the index within the string of the first occurrence of the specified string, starting the search at fromIndex if provided.

searchValue String The string for which to search.
offset? Number The starting offset of the search.
String

Returns a string consisting of this string enclosed in a <i> tag.

Number

Returns the index within the string of the last occurrence of the specified value.

searchValue String The string for which to search.
offset? Number The starting offset of the search.
Number

Performs a localized comparison of two strings.

what String The string to compare with.
Array

Matches a string against a regular expression.

regexp RegExp The regular expression to use.
String

Extracts a substring of the given string and returns it as a new string.

startSlice Number The index at which to begin extraction.
endSlice? Number The index at which to end extraction.
String

Returns a string consisting of this string enclosed in a <small> tag.

String

Splits a string into a group of substrings, places those strings in an array, and returns the array.

delimiter String Specifies the string to use for delimiting.
limit Number
String

Returns a string consisting of this string enclosed in a <strike> tag.

String

Returns a string consisting of this string enclosed in a <sub> tag.

String

Returns a string containing the characters beginning at the specified index, start, through the specified number of characters.

start Number Location at which to begin extracting characters.
length Number (OptIonal) The number of characters to extract.
String

Returns a substring of the given string by extracting characters from indexA up to but not including indexB.

indexA Number The index to begin extracting.
indexB Number (Optional) The index at which to end extraction.
String

Returns a string consisting of this string enclosed in a <sup> tag.

String

Returns a new string which contains all the characters of the original string converted to lowercase (localized).

String

Returns a new string which contains all the characters of the original string converted to uppercase (localized).

String

Returns a new string which contains all the characters of the original string converted to lowercase.

String

Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with built-in classes.

String

Returns itself.

String

Returns a new string which contains all the characters of the original string converted to uppercase.

String

Returns itself.

Object of 65

Properties elsewhere that hold a String.

Parameter of 80

Method parameters that accept a String.

$.getenv(name)$.setenv(name)Array.join(delimiter)Date.parse(text)Error.Error(msg)File.File(path)File.changePath(path)File.copy(target)File.createAlias(path)File.decode(uri)File.encode(name)File.getRelativeURI(basePath)File.isEncodingAvailable(name)File.open(mode)File.openDialog(prompt)File.openDlg(prompt)File.rename(newName)File.saveDialog(prompt)File.saveDlg(prompt)File.write(text)File.writeln(text)Folder.Folder(path)Folder.changePath(path)Folder.decode(uri)Folder.encode(name)Folder.getRelativeURI(basePath)Folder.isEncodingAvailable(name)Folder.rename(newName)Folder.selectDialog(prompt)Folder.selectDlg(prompt)Function.Function(arguments)Namespace.Namespace(uri)Object.hasOwnProperty(name)Object.propertyIsEnumerable(name)Object.unwatch(name)Object.watch(name)QName.QName(name)Reflection.find(name)RegExp.RegExp(pattern)RegExp.compile(pattern)RegExp.exec(text)RegExp.test(text)Socket.listen(encoding)Socket.open(host)Socket.write(text)Socket.writeln(text)String.anchor(name)String.concat(value)String.fontcolor(color)String.indexOf(searchValue)String.lastIndexOf(searchValue)String.link(href)String.localeCompare(what)String.replace(with)String.split(delimiter)UnitValue.as(unitName)UnitValue.convert(unitName)XML.XML(text)XML.attribute(name)XML.child(name)XML.descendants(name)XML.elements(name)XML.processingInstructions(name)XML.replace(name)XML.setLocalName(name)XML.xpath(expr)global.alert(message)global.confirm(message)global.decodeURI(uri)global.decodeURIComponent(uri)global.encodeURI(text)global.encodeURIComponent(text)global.escape(aString)global.eval(stringExpression)global.isXMLName(name)global.localize(what)global.parseFloat(text)global.parseInt(text)global.prompt(prompt)global.unescape(stringExpression)

Return 83

Methods that return a String.