Interface String
Hierarchy
- String
Index
Methods
anchor
-
Parameters
-
name: string
Returns string
-
big
-
Returns a HTML element
Returns string
blink
-
Returns a
Returns string
bold
-
Returns a HTML element
Returns string
codePointAt
-
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point value of the UTF-16 encoded code point starting at the string element at position pos in the String resulting from converting this object to a String. If there is no element at that position, the result is undefined. If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
-
pos: number
Returns number | undefined
-
endsWith
-
Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at endPosition – length(this). Otherwise returns false.
Parameters
-
searchString: string
-
Optional endPosition: number
Returns boolean
-
fixed
-
Returns a HTML element
Returns string
fontcolor
-
Returns a HTML element and sets the color attribute value
Parameters
-
color: string
Returns string
-
fontsize
-
Returns a HTML element and sets the size attribute value
Parameters
-
size: number
Returns string
-
-
Returns a HTML element and sets the size attribute value
Parameters
-
size: string
Returns string
-
includes
-
Returns true if searchString appears as a substring of the result of converting this object to a String, at one or more positions that are greater than or equal to position; otherwise, returns false.
Parameters
-
searchString: string
search string
-
Optional position: number
If position is undefined, 0 is assumed, so as to search all of the String.
Returns boolean
-
italics
-
Returns an HTML element
Returns string
link
-
Parameters
-
url: string
Returns string
-
normalize
-
Returns the String value result of normalizing the string into the normalization form named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
-
form: "NFC" | "NFD" | "NFKC" | "NFKD"
Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC"
Returns string
-
-
Returns the String value result of normalizing the string into the normalization form named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
-
Optional form: string
Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC"
Returns string
-
repeat
-
Returns a String value that is made from count copies appended together. If count is 0, the empty string is returned.
Parameters
-
count: number
number of copies to append
Returns string
-
small
-
Returns a HTML element
Returns string
startsWith
-
Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at position. Otherwise returns false.
Parameters
-
searchString: string
-
Optional position: number
Returns boolean
-
strike
-
Returns a
HTML elementReturns string
sub
-
Returns a HTML element
Returns string
sup
-
Returns a HTML element
Returns string
Generated using TypeDoc
Returns an HTML anchor element and sets the name attribute to the text value