OverviewSingleDeprecated

window

class String

Object
->String

native class String
extends Object
Native JavaScript class String. Includes GI extensions.

Field Summary
native void
length
Constructor Summary
native void
Method Summary
native void
native void
native void
String
constrainLength(intMax : ?, ellipsis : ?)
Deprecated. Use jsx3.util.strTruncate() instead.
String
doReplace(strReplace : String, strReplaceWith : String)
Deprecated. Use String.replace() with regular expression syntax.
String
doTruncate(intLength : int)
Deprecated. Use jsx3.util.strTruncate() instead.
boolean
endsWith(token : String)
Deprecated. Use jsx3.util.strEndsWith() instead.
String
Deprecated. Use jsx3.util.strEscapeHTML() instead.
String
Deprecated. Use jsx3.util.strDecodeBase64() instead.
native static void
native void
native void
native void
native void
native void
native void
native void
String
Deprecated. Use jsx3.resolveURI().
String
Deprecated. Use jsx3.util.strEncodeBase64() instead.
native void
native void
String
Deprecated. Use jsx3.util.strTrim() instead.
String
urlTo(strRelative : String)
Deprecated. Create instances of jsx3.net.URI and use URI.resolve().
Methods Inherited From Object
toString
Field Detail

length

native ? length
Constructor Detail

String

native void String()
Method Detail

charAt

native void charAt()

charCodeAt

native void charCodeAt()

concat

native void concat()

constrainLength

String constrainLength(intMax : ?, ellipsis : ?)
Deprecated. Use jsx3.util.strTruncate() instead.
trim a string down to a maximum length, put an ellipsis in the middle of the string if the string is too long, showing the beginning and ending of the string.

Parameters:

intMax
ellipsis

Returns:

 

doReplace

String doReplace(strReplace : String, strReplaceWith : String)
Deprecated. Use String.replace() with regular expression syntax.
performs a global, case-sensitive replace of all instances of @strReplace with @strReplaceWith

Parameters:

strReplacestring to replace
strReplaceWithstring to replace with

Returns:

 

doTruncate

String doTruncate(intLength : int)
Deprecated. Use jsx3.util.strTruncate() instead.
truncates a string to @intLength and appends "..." to the end if the string is is actually truncated

Parameters:

intLengthlength of the string (including the trailing ..., if necessary)

Returns:

 

endsWith

boolean endsWith(token : String)
Deprecated. Use jsx3.util.strEndsWith() instead.
Returns whether or not the string ends with @token

Parameters:

tokenitem to match on the String instance

Returns:

 

escapeHTML

String escapeHTML()
Deprecated. Use jsx3.util.strEscapeHTML() instead.
replaces the following four characters with their escaped equivalent: & < > "

Returns:

 

fromBase64

String fromBase64()
Deprecated. Use jsx3.util.strDecodeBase64() instead.
Decodes this string from its base64 equivalent.

Returns:

 

fromCharCode

native static void fromCharCode()

indexOf

native void indexOf()

match

native void match()

replace

native void replace()

search

native void search()

slice

native void slice()

split

native void split()

substring

native void substring()

toAbsolute

String toAbsolute()
Deprecated. Use jsx3.resolveURI().
takes any string (assumed to be a valid URL) and prepends that string with the appropriate path information. This function is used by the JSX framework to resolve file locations at runtime, and is always used by system methods that need to resolve the location of a resource. For example, if the application is located at "/system/JSXAPPS/app1/" and a resource is requested at "JSXAPPS/app1/components/appCanval.xml", this method would return "/system/JSXAPPS/app1/components/appCanval.xml"

Returns:

URL 

See Also:

jsx3.resolveURI()

toBase64

String toBase64()
Deprecated. Use jsx3.util.strEncodeBase64() instead.
Encodes this string to its base64 equivalent.

Returns:

 

toLowerCase

native void toLowerCase()

toUpperCase

native void toUpperCase()

trim

String trim()
Deprecated. Use jsx3.util.strTrim() instead.
trims trailing and leading spaces (anything matching the regexp, \s) from a string

Returns:

 

urlTo

String urlTo(strRelative : String)
Deprecated. Create instances of jsx3.net.URI and use URI.resolve().
Returns a url, strRelative, relative to the URL represented by this string. For example, if 'this' String is equal to "/perforce/DEV/gi/gi-dev/index.html" and @strRelative is equal to "JSXAPPS/app1/config.xml", then the result of this function would be: "/perforce/DEV/gi/gi-dev/JSXAPPS/app1/config.xml"

Parameters:

strRelativeURL to base relativity from

Returns:

 

See Also:

jsx3.net.URI