Class JSString

java.lang.Object
org.fife.rsta.ac.js.ecma.api.ecma3.JSString
All Implemented Interfaces:
JSObjectFunctions, JSStringFunctions
Direct Known Subclasses:
JS5String

public abstract class JSString extends Object implements JSStringFunctions
Object String
Since:
Standard ECMA-262 3rd. Edition
  • Field Details

    • length

      protected JSNumber length
      property length
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • prototype

      public JSString prototype
      property prototype
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • constructor

      protected JSFunction constructor
      property constructor
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
  • Constructor Details

    • JSString

      public JSString(JSString s)
      Object String(s)
      Parameters:
      s - The value to be stored in a String or converted to a primitive type
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
  • Method Details

    • fromCharCode

      public static JSString fromCharCode(JSNumber charCode)
      function fromCharCode(charCode1, ...) create a string from character encodings.

      Example

       var s = String.fromCharCode(104,101,108,108,111); //returns the string hello
       
      Parameters:
      charCode - Zero or more integers that specify Unicode encodings of the characters in the string to be created.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also: