The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IWL::String - string helper functions

DESCRIPTION

The IWL::String module provides string helper functions

Functions

encodeURI (STRING)

Encodes the string by replacing each instance of certain characters by one, two, or three escape sequences representing the UTF-8 encoding of the character. Can be unescaped using the decodeURI javascript function

Parameters: STRING - the string to encode

decodeURI (STRING)

Decodes the string that was previously encoded using encodeString()

Parameters: STRING - the string to decode

encodeURIComponent (STRING)

Encodes the string by replacing each instance of certain characters by one, two, or three escape sequences representing the UTF-8 encoding of the character. Can be unescaped using the decodeURIComponent javascript function

Parameters: STRING - the string to encode

NOTE: Internet explorer suffers a severe slowdown for decodeURIComponent with large strings. escape(3pm) should be used instead, when not dealing with encoding URI components.

escape (STRING, [ENCODING])

Escapes the string with character semantics. Similar to javascript's escape()

Parameters: STRING - the string to escape, ENCODING - optional, the encoding of the string (defaults to 'utf-8')

unescape (STRING)

Unescapes a string, previously escaped using escape(3pm)

Parameters: STRING - the string to unescape

escapeHTML (STRING)

Converts HTML special characters to entity elements

Parameters: STRING - the string to escape

unescapeHTML (STRING)

Converts entity elements to HTML special characters

Parameters: STRING - the string to unescape

randomize (STRING)

Randomizes the string by appending an underscore and a random floating point number to it

Parameters: STRING - the string to randomize

LICENCE AND COPYRIGHT

Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 193:

You forgot a '=back' before '=head1'