Clear Up
SharpKit Reference

JsString Class

Allows manipulation and formatting of text strings and determination and location of substrings within strings.

Namespace: SharpKit.JavaScript

Base Types

Constructors

Name Description
JsString()
JsString(object)

Methods

Name Description
anchor(string) Places an HTML anchor with a NAME attribute around specified text in the object.
big() Places HTML <BIG> tags around text in a String object.
blink() Places HTML <BLINK> tags around text in a String object.
bold() Places HTML <B> tags around text in a String object.
charAt(JsNumber) Returns the character at the specified index.
charCodeAt(JsNumber) Returns an integer representing the Unicode encoding of the character at the specified location.
concat(JsString[]) Returns a string value containing the concatenation of two or more supplied strings.
fixed() Places HTML <TT> tags around text in a String object.
fontcolor() Places an HTML <FONT> tag with the COLOR attribute around the text in a String object.
fontsize(JsNumber) Places an HTML <FONT> tag with the SIZE attribute around the text in a String object.
fromCharCode(JsNumber[]) Returns a string from a number of Unicode character values.
indexOf(JsString) Returns the character position where the first occurrence of a substring occurs within a String object.
indexOf(JsString, JsNumber) Returns the character position where the first occurrence of a substring occurs within a String object.
italics() Places HTML <I> tags around text in a String object.
lastIndexOf(Char) Returns the last occurrence of a substring within a String object.
lastIndexOf(JsString) Returns the last occurrence of a substring within a String object.
lastIndexOf(JsString, JsNumber) Returns the last occurrence of a substring within a String object.
match(JsRegExp) Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
match(JsString) Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
replace(JsRegExp, string) Returns a copy of a string with text replaced using a regular expression or search string.
replace(string, string) Returns a copy of a string with text replaced using a regular expression or search string.
replace(JsRegExp, JsFunc<T1, T2, T3, TResult>) Returns a copy of a string with text replaced using a regular expression or search string. Replace function with no params
replace(string, JsFunc<T1, T2, T3, TResult>) Returns a copy of a string with text replaced using a regular expression or search string. Replace function with no params
replace(string, JsFunc<T1, T2, T3, T4, TResult>) Replace function with 1 param
replace(string, JsFunc<T1, T2, T3, T4, T5, TResult>) Replace function with 2 params
replace(string, JsFunc<T1, T2, T3, T4, T5, T6, TResult>) Replace function with 3 params
replace(JsRegExp, JsFunc<T1, T2, T3, T4, TResult>) Replace function with 1 params
replace(JsRegExp, JsFunc<T1, T2, T3, T4, T5, TResult>) Replace function with 2 params
replace(JsRegExp, JsFunc<T1, T2, T3, T4, T5, T6, TResult>) Replace function with 3 params
search(JsRegExp) Returns the position of the first substring match in a regular expression search.
search(string) Returns the position of the first substring match in a regular expression search.
slice(int, int) Returns a section of a string.
slice(int) Returns a section of a string.
split(JsRegExp)
split(Char)
split(JsString)
substr(JsNumber, JsNumber) Returns a substring beginning at a specified location and having a specified length.
substr(JsNumber) Returns a substring beginning at a specified location and having a specified length.
substring(JsNumber) Returns the substring at the specified location within a String object.
substring(JsNumber, JsNumber) Returns the substring at the specified location within a String object.
toLocaleLowerCase() Returns a string where all alphabetic characters have been converted to lowercase, taking into account the host environment's current locale.
toLocaleUpperCase() Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
toLowerCase() Returns a string where all alphabetic characters have been converted to lowercase.
ToString()
toUpperCase() Returns a string where all alphabetic characters have been converted to uppercase.

Fields

Name Description
length Returns the length of a String object.
© Copyright 2005-2011 SharpKit. All rights reserved.