Class JSString
java.lang.Object
org.fife.rsta.ac.js.ecma.api.ecma3.JSString
- All Implemented Interfaces:
JSObjectFunctions, JSStringFunctions
- Direct Known Subclasses:
JS5String
Object String
- Since:
- Standard ECMA-262 3rd. Edition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSFunctionproperty constructorprotected JSNumberproperty lengthproperty prototype -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSStringfromCharCode(JSNumber charCode) function fromCharCode(charCode1, ...) create a string from character encodings.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOfMethods inherited from interface JSStringFunctions
charAt, charCodeAt, concat, indexOf, lastIndexOf, localeCompare, match, replace, search, slice, split, substring, toLocaleLowerCase, toLocaleUpperCase, toLowerCase, toUpperCase
-
Field Details
-
length
property length- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
prototype
property prototype- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
constructor
property constructor- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
-
Constructor Details
-
JSString
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
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:
-