String

Object
   |
   +--String


 
Properties Summary
 Object clip
          
<static>  Object ANUMPATTERN
          
<static>  Object APATTERN
          
<static>  Object BALANCE
          
<static>  Object EMAILPATTERN
          
<static>  Object FILEPATTERN
          
<static>  Object HEXPATTERN
          
<static>  Object ISOFORMAT
          
<static>  Object LEFT
          
<static>  Object NULL
          
<static>  Object NUMPATTERN
          
<static>  Object RIGHT
          
<static>  Object URLPATTERN
          
 
Methods Summary
 Object capitalize(limit)
           transforms the first n characters of a string to uppercase
 Object contains(str, fromIndex)
           function returns true if a string contains the string passed as argument
 Object count(str)
           returns the amount of occurences of one string in another
 Object debase64()
           returns the decoded string using the base64 algorithm
 Object diff(mod, separator)
           function compares a string with the one passed as argument using diff
 Object embody(limit, clipping, delimiter)
           breaks up a string into two parts called head and tail at the given position don't apply this to HTML, i.e.
 Object enbase64()
           returns the string encoded using the base64 algorithm
 Object encode()
          
 Object encodeForm()
          
 Object encodeXml()
          
 Object endsWith(str)
           function returns true if the string ends with the string passed as argument
 Object entitize()
           translates all characters of a string into HTML entities
 Object format()
          
 Object group(interval, str, ignoreWhiteSpace)
           function inserts a string every number of characters
 Object head(limit, clipping, delimiter)
           get the head of a string
 Object isAlpha()
           function returns true if the string contains only characters a-z
 Object isAlphanumeric()
           function returns true if the string contains only a-z and 0-9 (case insensitive!)
 Object isDateFormat()
           checks if a date format pattern is correct
 Object isEmail()
           returns true if the string looks like an e-mail
 Object isFileName()
           function checks if the string passed contains any characters that are forbidden in image- or filenames
 Object isHexColor()
           function checks a string for a valid color value in hexadecimal format.
 Object isNumeric()
           function returns true if the string contains only 0-9
 Object isUrl()
           function checks if the string passed contains any characters that are forbidden in URLs and tries to create a java.net.URL from it FIXME: probably deprecated -> helma.Url
 Object md5()
           function calculates the md5 hash of a string
 Object pad(str, len, mode)
           fills a string with another string up to a desired length
 Object parseJSON()
          
 Object repeat(multiplier)
           function repeats a string passed as argument
 Object startsWith(str, offset)
           function returns true if the string starts with the string passed as argument
 Object stripTags()
          
 Object tail(limit, clipping, delimiter)
           get the tail of a string
 Object titleize()
           transforms the first n characters of each word in a string to uppercase
 Object toAlphanumeric()
           function cleans a string by throwing away all non-alphanumeric characters
 Object toDate(format, timezone)
           parse a timestamp into a date object.
 Object toFileName()
           function cleans the string passed as argument from any characters that are forbidden or shouldn't be used in filenames
 Object toHexColor()
           converts a string into a hexadecimal color representation (e.g.
 Object trim()
           remove leading and trailing whitespace
 Object unwrap(removeTags, replacement)
           replace all linebreaks and optionally all w/br tags
<static>  Object compose()
           create a string from a bunch of substrings
<static>  Object join(str1, str2, glue)
           append one string onto another and add some "glue" if none of the strings is empty or null.
<static>  Object random(len, mode)
           creates a random string (numbers and chars)
<static>  Object Sorter(field, order)
           factory to create functions for sorting objects in an array


Properties Detail

clip

Object clip

ANUMPATTERN

<static> Object ANUMPATTERN

APATTERN

<static> Object APATTERN

BALANCE

<static> Object BALANCE

EMAILPATTERN

<static> Object EMAILPATTERN

FILEPATTERN

<static> Object FILEPATTERN

HEXPATTERN

<static> Object HEXPATTERN

ISOFORMAT

<static> Object ISOFORMAT

LEFT

<static> Object LEFT

NULL

<static> Object NULL

NUMPATTERN

<static> Object NUMPATTERN

RIGHT

<static> Object RIGHT

URLPATTERN

<static> Object URLPATTERN

Method Detail

capitalize

Object capitalize(limit)

contains

Object contains(str, fromIndex)

count

Object count(str)

debase64

Object debase64()

diff

Object diff(mod, separator)

embody

Object embody(limit, clipping, delimiter)

enbase64

Object enbase64()

encode

Object encode()

encodeForm

Object encodeForm()

encodeXml

Object encodeXml()

endsWith

Object endsWith(str)

entitize

Object entitize()

format

Object format()

group

Object group(interval, str, ignoreWhiteSpace)

head

Object head(limit, clipping, delimiter)

isAlpha

Object isAlpha()

isAlphanumeric

Object isAlphanumeric()

isDateFormat

Object isDateFormat()

isEmail

Object isEmail()

isFileName

Object isFileName()

isHexColor

Object isHexColor()

isNumeric

Object isNumeric()

isUrl

Object isUrl()

md5

Object md5()

pad

Object pad(str, len, mode)

parseJSON

Object parseJSON()

repeat

Object repeat(multiplier)

startsWith

Object startsWith(str, offset)

stripTags

Object stripTags()

tail

Object tail(limit, clipping, delimiter)

titleize

Object titleize()

toAlphanumeric

Object toAlphanumeric()

toDate

Object toDate(format, timezone)

toFileName

Object toFileName()

toHexColor

Object toHexColor()

trim

Object trim()

unwrap

Object unwrap(removeTags, replacement)

compose

<static> Object compose()

join

<static> Object join(str1, str2, glue)

random

<static> Object random(len, mode)

Sorter

<static> Object Sorter(field, order)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007