trait String extends scala.scalajs.js.Object with StObject with NumberDictionary[java.lang.String]
- Alphabetic
- By Inheritance
- 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 - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def big(): java.lang.String
Returns a
` HTML element - def blink(): java.lang.String
Returns a
<blink>HTML element - def bold(): java.lang.String
Returns a
` HTML element - 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.
- 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.
- 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.
- 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.
- def endsWith(searchString: java.lang.String, endPosition: Double): scala.Boolean
- 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.
- 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 element - def fontcolor(color: java.lang.String): java.lang.String
Returns a
<font>HTML element and sets the color attribute value - def fontsize(size: Double): java.lang.String
Returns a
<font>HTML element and sets the size attribute value - def fontsize(size: java.lang.String): java.lang.String
Returns a
<font>HTML element and sets the size attribute value - 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
- 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
- def indexOf(searchString: java.lang.String, position: Double): Double
- 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
- 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 element - val iterator: Function0[IterableIterator[java.lang.String]]
Iterator
Iterator
- Annotations
- @JSName(js.Symbol.iterator)
- def lastIndexOf(searchString: java.lang.String, position: Double): Double
- 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.
- val length: Double
Returns the length of a String object.
- def link(url: java.lang.String): java.lang.String
- def localeCompare(that: java.lang.String, locales: Unit, options: CollatorOptions): Double
- def localeCompare(that: java.lang.String, locales: scala.scalajs.js.Array[java.lang.String], options: CollatorOptions): Double
- def localeCompare(that: java.lang.String, locales: scala.scalajs.js.Array[java.lang.String]): Double
- def localeCompare(that: java.lang.String, locales: java.lang.String, options: CollatorOptions): Double
- def localeCompare(that: java.lang.String, locales: java.lang.String): Double
- 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
- def match(regexp: scala.scalajs.js.RegExp): |[RegExpMatchArray, Null]
- 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.
- 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.
- 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.
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def normalize(form: java.lang.String): java.lang.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.
- 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"
- Annotations
- @JSName("normalize")
- def normalize_NFD(form: NFD): java.lang.String
- Annotations
- @JSName("normalize")
- def normalize_NFKC(form: NFKC): java.lang.String
- Annotations
- @JSName("normalize")
- def normalize_NFKD(form: NFKD): java.lang.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
- 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.
- def padStart(maxLength: Double, fillString: java.lang.String): java.lang.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.
- 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
- def replace(searchValue: scala.scalajs.js.RegExp, replacer: Function2[java.lang.String, Any, java.lang.String]): java.lang.String
- def replace(searchValue: scala.scalajs.js.RegExp, replaceValue: java.lang.String): java.lang.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.
- 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.
- 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.
- 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.
- 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.
- def search(regexp: scala.scalajs.js.RegExp): Double
- 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.
- def slice(start: Unit, end: Double): java.lang.String
- def slice(start: Double, end: Double): java.lang.String
- def slice(start: Double): java.lang.String
- def slice(): java.lang.String
Returns a section of a string.
- def small(): java.lang.String
Returns a
` HTML element - def split(splitter: Split, limit: Double): scala.scalajs.js.Array[java.lang.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.
- def split(separator: scala.scalajs.js.RegExp, limit: Double): scala.scalajs.js.Array[java.lang.String]
- def split(separator: scala.scalajs.js.RegExp): scala.scalajs.js.Array[java.lang.String]
- def split(separator: java.lang.String, limit: Double): scala.scalajs.js.Array[java.lang.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.
- def startsWith(searchString: java.lang.String, position: Double): scala.Boolean
- 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.
- def strike(): java.lang.String
Returns a
<strike>HTML element - def sub(): java.lang.String
Returns a
` HTML element - def substr(from: Double, length: Double): java.lang.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.
- def substring(start: Double, end: Double): java.lang.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.
- def sup(): java.lang.String
Returns a
` HTML element - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleLowerCase(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
- def toLocaleLowerCase(locales: java.lang.String): java.lang.String
- def toLocaleLowerCase(): java.lang.String
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toLocaleUpperCase(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
- def toLocaleUpperCase(locales: java.lang.String): java.lang.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.
- def toLowerCase(): java.lang.String
Converts all the alphabetic characters in a string to lowercase.
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def toUpperCase(): java.lang.String
Converts all the alphabetic characters in a string to uppercase.
- def trim(): java.lang.String
Removes the leading and trailing white space and line terminator characters from a string.
- def trimEnd(): java.lang.String
Removes the trailing white space and line terminator characters from a string.
- def trimLeft(): java.lang.String
Removes the leading white space and line terminator characters from a string.
- def trimRight(): java.lang.String
Removes the trailing white space and line terminator characters from a string.
- def trimStart(): java.lang.String
Removes the leading white space and line terminator characters from a 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