class String extends scala.scalajs.js.Object with StObject with std.String

Annotations
@JSType() @JSGlobal("String") @native()
Source
String.scala
Linear Supertypes
std.String, NumberDictionary[java.lang.String], StObject, scala.scalajs.js.Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. String
  2. String
  3. NumberDictionary
  4. StObject
  5. Object
  6. Any
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new String(value: Any)
  2. new String()

Value Members

  1. final def !=(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  4. def anchor(name: java.lang.String): java.lang.String

    Returns an ` HTML anchor element and sets the name attribute to the text value

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def big(): java.lang.String

    Returns a ` HTML element

    Returns a ` HTML element

    Definition Classes
    String
  7. def blink(): java.lang.String

    Returns a <blink> HTML element

    Returns a <blink> HTML element

    Definition Classes
    String
  8. def bold(): java.lang.String

    Returns a ` HTML element

    Returns a ` HTML element

    Definition Classes
    String
  9. 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
  10. 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
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  12. 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
  13. 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
  14. def endsWith(searchString: java.lang.String, endPosition: Double): scala.Boolean
    Definition Classes
    String
  15. 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
  16. final def eq(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef → Any
  18. def fixed(): java.lang.String

    Returns a ` HTML element

    Returns a ` HTML element

    Definition Classes
    String
  19. def fontcolor(color: java.lang.String): java.lang.String

    Returns a <font> HTML element and sets the color attribute value

    Returns a <font> HTML element and sets the color attribute value

    Definition Classes
    String
  20. def fontsize(size: Double): java.lang.String

    Returns a <font> HTML element and sets the size attribute value

    Returns a <font> HTML element and sets the size attribute value

    Definition Classes
    String
  21. def fontsize(size: java.lang.String): java.lang.String

    Returns a <font> HTML element and sets the size attribute value

    Returns a <font> HTML element and sets the size attribute value

    Definition Classes
    String
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. def hasOwnProperty(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  25. def includes(searchString: java.lang.String, position: Double): scala.Boolean
    Definition Classes
    String
  26. 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
  27. def indexOf(searchString: java.lang.String, position: Double): Double
    Definition Classes
    String
  28. 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
  29. final def isInstanceOf[T0]: scala.Boolean
    Definition Classes
    Any
  30. def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
    Definition Classes
    Object
  31. def italics(): java.lang.String

    Returns an ` HTML element

    Returns an ` HTML element

    Definition Classes
    String
  32. val iterator: Function0[IterableIterator[java.lang.String]]

    Iterator

    Iterator

    Definition Classes
    String
    Annotations
    @JSName(js.Symbol.iterator)
  33. def lastIndexOf(searchString: java.lang.String, position: Double): Double
    Definition Classes
    String
  34. 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
  35. val length: Double

    Returns the length of a String object.

    Returns the length of a String object.

    Definition Classes
    String
  36. def link(url: java.lang.String): java.lang.String

    Returns an ` HTML element and sets the href attribute value

  37. def localeCompare(that: java.lang.String, locales: Unit, options: CollatorOptions): Double
    Definition Classes
    String
  38. def localeCompare(that: java.lang.String, locales: scala.scalajs.js.Array[java.lang.String], options: CollatorOptions): Double
    Definition Classes
    String
  39. def localeCompare(that: java.lang.String, locales: scala.scalajs.js.Array[java.lang.String]): Double
    Definition Classes
    String
  40. def localeCompare(that: java.lang.String, locales: java.lang.String, options: CollatorOptions): Double
    Definition Classes
    String
  41. def localeCompare(that: java.lang.String, locales: java.lang.String): Double
    Definition Classes
    String
  42. 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
  43. def match(regexp: scala.scalajs.js.RegExp): |[RegExpMatchArray, Null]
    Definition Classes
    String
  44. 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
  45. 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
  46. 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
  47. final def ne(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  48. def normalize(form: java.lang.String): java.lang.String
    Definition Classes
    String
  49. 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
  50. 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")
  51. def normalize_NFD(form: NFD): java.lang.String
    Definition Classes
    String
    Annotations
    @JSName("normalize")
  52. def normalize_NFKC(form: NFKC): java.lang.String
    Definition Classes
    String
    Annotations
    @JSName("normalize")
  53. def normalize_NFKD(form: NFKD): java.lang.String
    Definition Classes
    String
    Annotations
    @JSName("normalize")
  54. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  55. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  56. def padEnd(maxLength: Double, fillString: java.lang.String): java.lang.String
    Definition Classes
    String
  57. 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
  58. def padStart(maxLength: Double, fillString: java.lang.String): java.lang.String
    Definition Classes
    String
  59. 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
  60. def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  61. 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
  62. def replace(searchValue: scala.scalajs.js.RegExp, replacer: Function2[java.lang.String, Any, java.lang.String]): java.lang.String
    Definition Classes
    String
  63. def replace(searchValue: scala.scalajs.js.RegExp, replaceValue: java.lang.String): java.lang.String
    Definition Classes
    String
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. def search(regexp: scala.scalajs.js.RegExp): Double
    Definition Classes
    String
  70. 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
  71. def slice(start: Unit, end: Double): java.lang.String
    Definition Classes
    String
  72. def slice(start: Double, end: Double): java.lang.String
    Definition Classes
    String
  73. def slice(start: Double): java.lang.String
    Definition Classes
    String
  74. def slice(): java.lang.String

    Returns a section of a string.

    Returns a section of a string.

    Definition Classes
    String
  75. def small(): java.lang.String

    Returns a ` HTML element

    Returns a ` HTML element

    Definition Classes
    String
  76. def split(splitter: Split, limit: Double): scala.scalajs.js.Array[java.lang.String]
    Definition Classes
    String
  77. 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
  78. def split(separator: scala.scalajs.js.RegExp, limit: Double): scala.scalajs.js.Array[java.lang.String]
    Definition Classes
    String
  79. def split(separator: scala.scalajs.js.RegExp): scala.scalajs.js.Array[java.lang.String]
    Definition Classes
    String
  80. def split(separator: java.lang.String, limit: Double): scala.scalajs.js.Array[java.lang.String]
    Definition Classes
    String
  81. 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
  82. def startsWith(searchString: java.lang.String, position: Double): scala.Boolean
    Definition Classes
    String
  83. 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
  84. def strike(): java.lang.String

    Returns a <strike> HTML element

    Returns a <strike> HTML element

    Definition Classes
    String
  85. def sub(): java.lang.String

    Returns a ` HTML element

    Returns a ` HTML element

    Definition Classes
    String
  86. def substr(from: Double, length: Double): java.lang.String
    Definition Classes
    String
  87. 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
  88. def substring(start: Double, end: Double): java.lang.String
    Definition Classes
    String
  89. 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
  90. def sup(): java.lang.String

    Returns a ` HTML element

    Returns a ` HTML element

    Definition Classes
    String
  91. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  92. def toLocaleLowerCase(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
    Definition Classes
    String
  93. def toLocaleLowerCase(locales: java.lang.String): java.lang.String
    Definition Classes
    String
  94. 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
  95. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  96. def toLocaleUpperCase(locales: scala.scalajs.js.Array[java.lang.String]): java.lang.String
    Definition Classes
    String
  97. def toLocaleUpperCase(locales: java.lang.String): java.lang.String
    Definition Classes
    String
  98. 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
  99. 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
  100. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. def valueOf(): Any
    Definition Classes
    Object
  108. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  109. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  110. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from std.String

Inherited from NumberDictionary[java.lang.String]

Inherited from StObject

Inherited from scala.scalajs.js.Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped