class String extends scala.scalajs.js.Object with StObject with std.String
- Annotations
- @JSType() @JSGlobal("String") @native()
- Source
- String.scala
- Alphabetic
- By Inheritance
- String
- String
- NumberDictionary
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- def anchor(name: java.lang.String): java.lang.String
Returns an
` HTML anchor element and sets the name attribute to the text value- Definition Classes
- String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def big(): java.lang.String
Returns a
` HTML elementReturns a
` HTML element- Definition Classes
- String
- def blink(): java.lang.String
Returns a
<blink>HTML elementReturns a
<blink>HTML element- Definition Classes
- String
- def bold(): java.lang.String
Returns a
` HTML elementReturns a
` HTML element- Definition Classes
- String
- def charAt(pos: Double): java.lang.String
Returns the character at the specified index.
Returns the character at the specified index.
- pos
The zero-based index of the desired character.
- Definition Classes
- String
- def charCodeAt(index: Double): Double
Returns the Unicode value of the character at the specified location.
Returns the Unicode value of the character at the specified location.
- index
The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
- Definition Classes
- String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def codePointAt(pos: Double): UndefOr[Double]
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.
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.
- Definition Classes
- String
- def concat(strings: java.lang.String*): java.lang.String
Returns a string that contains the concatenation of two or more strings.
Returns a string that contains the concatenation of two or more strings.
- strings
The strings to append to the end of the string.
- Definition Classes
- String
- def endsWith(searchString: java.lang.String, endPosition: Double): scala.Boolean
- Definition Classes
- String
- def endsWith(searchString: java.lang.String): scala.Boolean
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).
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.
- Definition Classes
- String
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def fixed(): java.lang.String
Returns a
` HTML elementReturns a
` HTML element- Definition Classes
- String
- def fontcolor(color: java.lang.String): java.lang.String
Returns a
<font>HTML element and sets the color attribute valueReturns a
<font>HTML element and sets the color attribute value- Definition Classes
- String
- def fontsize(size: Double): java.lang.String
Returns a
<font>HTML element and sets the size attribute valueReturns a
<font>HTML element and sets the size attribute value- Definition Classes
- String
- def fontsize(size: java.lang.String): java.lang.String
Returns a
<font>HTML element and sets the size attribute valueReturns a
<font>HTML element and sets the size attribute value- Definition Classes
- String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def includes(searchString: java.lang.String, position: Double): scala.Boolean
- Definition Classes
- String
- def includes(searchString: java.lang.String): scala.Boolean
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.
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.
- searchString
search string
- Definition Classes
- String
- def indexOf(searchString: java.lang.String, position: Double): Double
- Definition Classes
- String
- def indexOf(searchString: java.lang.String): Double
Returns the position of the first occurrence of a substring.
Returns the position of the first occurrence of a substring.
- searchString
The substring to search for in the string
- Definition Classes
- String
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
- Definition Classes
- Object
- def italics(): java.lang.String
Returns an
` HTML elementReturns an
` HTML element- Definition Classes
- String
- val iterator: Function0[IterableIterator[java.lang.String]]
Iterator
Iterator
- Definition Classes
- String
- Annotations
- @JSName(js.Symbol.iterator)
- def lastIndexOf(searchString: java.lang.String, position: Double): Double
- Definition Classes
- String
- def lastIndexOf(searchString: java.lang.String): Double
Returns the last occurrence of a substring in the string.
Returns the last occurrence of a substring in the string.
- searchString
The substring to search for.
- Definition Classes
- String
- val length: Double
Returns the length of a String object.
Returns the length of a String object.
- Definition Classes
- String
- def link(url: java.lang.String): java.lang.String
Returns an
` HTML element and sets the href attribute value- Definition Classes
- String
- def localeCompare(that: java.lang.String, locales: Unit, options: CollatorOptions): Double
- Definition Classes
- String
- def localeCompare(that: java.lang.String, locales: scala.scalajs.js.Array[java.lang.String], options: CollatorOptions): Double
- Definition Classes
- String
- def localeCompare(that: java.lang.String, locales: scala.scalajs.js.Array[java.lang.String]): Double
- Definition Classes
- String
- def localeCompare(that: java.lang.String, locales: java.lang.String, options: CollatorOptions): Double
- Definition Classes
- String
- def localeCompare(that: java.lang.String, locales: java.lang.String): Double
- Definition Classes
- String
- def localeCompare(that: java.lang.String): Double
Determines whether two strings are equivalent in the current locale.
Determines whether two strings are equivalent in the current locale.
- that
String to compare to target string
- Definition Classes
- String
- def match(regexp: scala.scalajs.js.RegExp): |[RegExpMatchArray, Null]
- Definition Classes
- String
- def match(regexp: java.lang.String): |[RegExpMatchArray, Null]
Matches a string with a regular expression, and returns an array containing the results of that search.
Matches a string with a regular expression, and returns an array containing the results of that search.
- regexp
A variable name or string literal containing the regular expression pattern and flags.
- Definition Classes
- String
- def match(matcher: Match): |[RegExpMatchArray, Null]
Matches a string or an object that supports being matched against, and returns an array containing the results of that search, or null if no matches are found.
Matches a string or an object that supports being matched against, and returns an array containing the results of that search, or null if no matches are found.
- matcher
An object that supports being matched against.
- Definition Classes
- String
- def matchAll(regexp: scala.scalajs.js.RegExp): IterableIterator[RegExpMatchArray]
Matches a string with a regular expression, and returns an iterable of matches containing the results of that search.
Matches a string with a regular expression, and returns an iterable of matches containing the results of that search.
- regexp
A variable name or string literal containing the regular expression pattern and flags.
- Definition Classes
- String
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def normalize(form: java.lang.String): java.lang.String
- Definition Classes
- String
- def normalize(): java.lang.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.
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.
- Definition Classes
- String
- def normalize_NFC(form: NFC): java.lang.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.
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.
- form
Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC"
- Definition Classes
- String
- Annotations
- @JSName("normalize")
- def normalize_NFD(form: NFD): java.lang.String
- Definition Classes
- String
- Annotations
- @JSName("normalize")
- def normalize_NFKC(form: NFKC): java.lang.String
- Definition Classes
- String
- Annotations
- @JSName("normalize")
- def normalize_NFKD(form: NFKD): java.lang.String
- Definition Classes
- String
- Annotations
- @JSName("normalize")
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def padEnd(maxLength: Double, fillString: java.lang.String): java.lang.String
- Definition Classes
- String
- def padEnd(maxLength: Double): java.lang.String
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. The padding is applied from the end (right) of the current string.
- maxLength
The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is.
- Definition Classes
- String
- def padStart(maxLength: Double, fillString: java.lang.String): java.lang.String
- Definition Classes
- String
- def padStart(maxLength: Double): java.lang.String
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. The padding is applied from the start (left) of the current string.
- maxLength
The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is.
- Definition Classes
- String
- def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def repeat(count: Double): java.lang.String
Returns a String value that is made from count copies appended together.
Returns a String value that is made from count copies appended together. If count is 0, the empty string is returned.
- count
number of copies to append
- Definition Classes
- String
- def replace(searchValue: scala.scalajs.js.RegExp, replacer: Function2[java.lang.String, Any, java.lang.String]): java.lang.String
- Definition Classes
- String
- def replace(searchValue: scala.scalajs.js.RegExp, replaceValue: java.lang.String): java.lang.String
- Definition Classes
- String
- def replace(searchValue: java.lang.String, replacer: Function2[java.lang.String, Any, java.lang.String]): java.lang.String
Replaces text in a string, using a regular expression or search string.
Replaces text in a string, using a regular expression or search string.
- searchValue
A string to search for.
- replacer
A function that returns the replacement text.
- Definition Classes
- String
- def replace(searchValue: java.lang.String, replaceValue: java.lang.String): java.lang.String
Replaces text in a string, using a regular expression or search string.
Replaces text in a string, using a regular expression or search string.
- searchValue
A string to search for.
- replaceValue
A string containing the text to replace for every successful match of searchValue in this string.
- Definition Classes
- String
- def replace(searchValue: 0, replacer: Function2[java.lang.String, Any, java.lang.String]): java.lang.String
Replaces text in a string, using an object that supports replacement within a string.
Replaces text in a string, using an object that supports replacement within a string.
- searchValue
A object can search for and replace matches within a string.
- replacer
A function that returns the replacement text.
- Definition Classes
- String
- def replace(searchValue: Replace, replaceValue: java.lang.String): java.lang.String
Replaces text in a string, using an object that supports replacement within a string.
Replaces text in a string, using an object that supports replacement within a string.
- searchValue
A object can search for and replace matches within a string.
- replaceValue
A string containing the text to replace for every successful match of searchValue in this string.
- Definition Classes
- String
- def search(searcher: Search): Double
Finds the first substring match in a regular expression search.
Finds the first substring match in a regular expression search.
- searcher
An object which supports searching within a string.
- Definition Classes
- String
- def search(regexp: scala.scalajs.js.RegExp): Double
- Definition Classes
- String
- def search(regexp: java.lang.String): Double
Finds the first substring match in a regular expression search.
Finds the first substring match in a regular expression search.
- regexp
The regular expression pattern and applicable flags.
- Definition Classes
- String
- def slice(start: Unit, end: Double): java.lang.String
- Definition Classes
- String
- def slice(start: Double, end: Double): java.lang.String
- Definition Classes
- String
- def slice(start: Double): java.lang.String
- Definition Classes
- String
- def slice(): java.lang.String
Returns a section of a string.
Returns a section of a string.
- Definition Classes
- String
- def small(): java.lang.String
Returns a
` HTML elementReturns a
` HTML element- Definition Classes
- String
- def split(splitter: Split, limit: Double): scala.scalajs.js.Array[java.lang.String]
- Definition Classes
- String
- def split(splitter: Split): scala.scalajs.js.Array[java.lang.String]
Split a string into substrings using the specified separator and return them as an array.
Split a string into substrings using the specified separator and return them as an array.
- splitter
An object that can split a string.
- Definition Classes
- String
- def split(separator: scala.scalajs.js.RegExp, limit: Double): scala.scalajs.js.Array[java.lang.String]
- Definition Classes
- String
- def split(separator: scala.scalajs.js.RegExp): scala.scalajs.js.Array[java.lang.String]
- Definition Classes
- String
- def split(separator: java.lang.String, limit: Double): scala.scalajs.js.Array[java.lang.String]
- Definition Classes
- String
- def split(separator: java.lang.String): scala.scalajs.js.Array[java.lang.String]
Split a string into substrings using the specified separator and return them as an array.
Split a string into substrings using the specified separator and return them as an array.
- separator
A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
- Definition Classes
- String
- def startsWith(searchString: java.lang.String, position: Double): scala.Boolean
- Definition Classes
- String
- def startsWith(searchString: java.lang.String): scala.Boolean
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.
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.
- Definition Classes
- String
- def strike(): java.lang.String
Returns a
<strike>HTML elementReturns a
<strike>HTML element- Definition Classes
- String
- def sub(): java.lang.String
Returns a
` HTML elementReturns a
` HTML element- Definition Classes
- String
- def substr(from: Double, length: Double): java.lang.String
- Definition Classes
- String
- def substr(from: Double): java.lang.String
Gets a substring beginning at the specified location and having the specified length.
Gets a substring beginning at the specified location and having the specified length.
- from
The starting position of the desired substring. The index of the first character in the string is zero.
- Definition Classes
- String
- def substring(start: Double, end: Double): java.lang.String
- Definition Classes
- String
- def substring(start: Double): java.lang.String
Returns the substring at the specified location within a String object.
Returns the substring at the specified location within a String object.
- start
The zero-based index number indicating the beginning of the substring.
- Definition Classes
- String
- def sup(): java.lang.String
Returns a
` HTML elementReturns a
` HTML element- Definition Classes
- String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleLowerCase(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
- Definition Classes
- String
- def toLocaleLowerCase(locales: java.lang.String): java.lang.String
- Definition Classes
- String
- def toLocaleLowerCase(): java.lang.String
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
- Definition Classes
- String
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toLocaleUpperCase(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
- Definition Classes
- String
- def toLocaleUpperCase(locales: java.lang.String): java.lang.String
- Definition Classes
- String
- def toLocaleUpperCase(): java.lang.String
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
- Definition Classes
- String
- def toLowerCase(): java.lang.String
Converts all the alphabetic characters in a string to lowercase.
Converts all the alphabetic characters in a string to lowercase.
- Definition Classes
- String
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def toUpperCase(): java.lang.String
Converts all the alphabetic characters in a string to uppercase.
Converts all the alphabetic characters in a string to uppercase.
- Definition Classes
- String
- def trim(): java.lang.String
Removes the leading and trailing white space and line terminator characters from a string.
Removes the leading and trailing white space and line terminator characters from a string.
- Definition Classes
- String
- def trimEnd(): java.lang.String
Removes the trailing white space and line terminator characters from a string.
Removes the trailing white space and line terminator characters from a string.
- Definition Classes
- String
- def trimLeft(): java.lang.String
Removes the leading white space and line terminator characters from a string.
Removes the leading white space and line terminator characters from a string.
- Definition Classes
- String
- def trimRight(): java.lang.String
Removes the trailing white space and line terminator characters from a string.
Removes the trailing white space and line terminator characters from a string.
- Definition Classes
- String
- def trimStart(): java.lang.String
Removes the leading white space and line terminator characters from a string.
Removes the leading white space and line terminator characters from a string.
- Definition Classes
- String
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated