Class PTStringUtil

Object
   |
   +--PTStringUtil

class PTStringUtil


Static class containing String utility methods.

Usage:	
 	PTStringUtil.trimWhitespace(str)
 

Defined in PTUtil.js


Field Summary
<static>  Object VERSION
          
 
Constructor Summary
PTStringUtil ()
            PTStringUtil static object constructor
 
Method Summary
<static> Boolean containsAngleBrackets(str)
           Determines if a string contains angle brackets
<static> Boolean containsWhitespace(str)
           Determines if a string contains whitespace
<static> String encodeURL(str,URLEncodeSingleQuotes)
           Escapes a string for safe usage as a URL
<static> String escapeHTML(str,doLineBreakConversion,doWhitespaceConversion)
           Escapes a string for safe display within HTML
<static> String escapeJS(str)
           Escapes a string for safe usage within JavaScript
<static> String getInnerText(elem)
           Retrieves the "innerText" from an element
<static> Boolean isAllWhitespace(str)
           Determines if a string contains only whitespace
<static> Boolean isString(obj)
           Determines if an object is a string
<static> Boolean isValidHTTPString(str)
           Determines if an object is a valid HTTP string
<static> Boolean isValidUNCString(str, bCanBeNull)
           Determines if an object is a valid UNC string
<static> String removeHTML(str)
           Removes HTML from a string of HTML.
<static> String stripChars(str,chars)
           Removes all occurences of a list of characters from a string
<static> String trimWhitespace(str,trimFront,trimRear)
           Removes whitespace from the beginning and/or end of a string
<static> String UCFirst(str)
           Converts first letter of a string to upper case
<static> String unescapeHTML(str)
           Unescapes an escaped string for use as HTML

Field Detail

VERSION

<static> Object VERSION

Constructor Detail

PTStringUtil

PTStringUtil()

Method Detail

containsAngleBrackets

<static> Boolean containsAngleBrackets(str)

containsWhitespace

<static> Boolean containsWhitespace(str)

encodeURL

<static> String encodeURL(str,URLEncodeSingleQuotes)

escapeHTML

<static> String escapeHTML(str,doLineBreakConversion,doWhitespaceConversion)

escapeJS

<static> String escapeJS(str)

getInnerText

<static> String getInnerText(elem)

isAllWhitespace

<static> Boolean isAllWhitespace(str)

isString

<static> Boolean isString(obj)

isValidHTTPString

<static> Boolean isValidHTTPString(str)

isValidUNCString

<static> Boolean isValidUNCString(str, bCanBeNull)

removeHTML

<static> String removeHTML(str)

stripChars

<static> String stripChars(str,chars)

trimWhitespace

<static> String trimWhitespace(str,trimFront,trimRear)

UCFirst

<static> String UCFirst(str)

unescapeHTML

<static> String unescapeHTML(str)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005