[ Back | warped.org | Gaim 2.0.0-beta4 Perl API ]


NAME

Gaim::Util

METHODS

integer = $path->build_dir ($mode)

* $mode (integer)

string = $tm->date_format_full

string = $tm->date_format_long

string = $tm->date_format_short

boolean = $address->email_is_valid

string = $str->escape_filename

string = $fd->fd_get_ip

string = Gaim::Util->home_dir

boolean = $str->markup_extract_info_field ($len, $dest, $start_token, $skip, $end_token, $check_value, $no_value_token, $display_name, $is_link, $link_prefix, $format_cb)

* $len (integer)
* $dest (GString)
* $start_token (string)
* $skip (integer)
* $end_token (string)
* $check_value (string)
* $no_value_token (string)
* $display_name (string)
* $is_link (boolean)
* $link_prefix (string)
* $format_cb (Gaim::Util::InfoFieldFormatCallback)

boolean = $needle->markup_find_tag ($haystack, $start, $end, $attributes)

* $haystack (string)
* $start (Gaim::Util)
* $end (Gaim::Util)
* $attributes (Gaim::Util)

string = $tag->markup_get_tag_name

$html->markup_html_to_xhtml ($dest_xhtml, $dest_plain)

* $dest_xhtml (Gaim::Util)
* $dest_plain (Gaim::Util)

string = $str->markup_linkify

string = $str->markup_slice ($x, $y)

* $x (integer)
* $y (integer)

string = $str->markup_strip_html

boolean = $message->message_meify ($len)

* $len (size_t)

file handle = $path->mkstemp ($binary)

* $binary (boolean)

string = $account->normalize ($str)

* $str (string)

boolean = $program->program_is_valid

string = $str->str_add_cr

string = $binary->str_binary_to_ascii ($len)

* $len (integer)

boolean = $s->str_has_prefix ($p)

* $p (string)

boolean = $s->str_has_suffix ($x)

* $x (string)

string = $sec->str_seconds_to_string

string = $size->str_size_to_units

$str->str_strip_char ($thechar)

* $thechar (string)

unix timestamp = $timestamp->str_to_time ($utc=FALSE, $tm=undef, $tz_off=undef, $rest=undef)

* $utc (boolean)
* $tm (Gaim::Util)
* $tz_off (long)
* $rest (Gaim::Util)

string = $string->strcasereplace ($delimiter, $replacement)

* $delimiter (string)
* $replacement (string)

string = $haystack->strcasestr ($needle)

* $needle (string)

string = $src->strdup_withhtml

string = $string->strreplace ($delimiter, $replacement)

* $delimiter (string)
* $replacement (string)

string = $in->text_strip_mnemonic

unix timestamp = $year->time_build ($month, $day, $hour, $min, $sec)

* $month (integer)
* $day (integer)
* $hour (integer)
* $min (integer)
* $sec (integer)

string = $tm->time_format

string = $str->unescape_filename

string = $html->unescape_html

string = $str->url_decode

string = $str->url_encode

boolean = $url->url_parse ($ret_host, $ret_port, $ret_path, $ret_user, $ret_passwd)

* $ret_host (Gaim::Util)
* $ret_port (integer)
* $ret_path (Gaim::Util)
* $ret_user (Gaim::Util)
* $ret_passwd (Gaim::Util)

string = Gaim::Util->user_dir

string = $format->utf8_strftime ($tm)

* $tm (Gaim::Util)

$handle->util_fetch_url ($url, $full, $user_agent, $http11, $cb)

* $url (string)
* $full (boolean)
* $user_agent (string)
* $http11 (boolean)
* $cb (scalar)

$dir->util_set_user_dir

boolean = $filename->util_write_data_to_file ($data, $size)

* $data (string)
* $size (size_t)

COPYRIGHT

Copyright (C) 2006 The Gaim Team


If this information helped you, consider exiting through your right. ©2006 Max Baker
Sun Apr 27 22:32:31 2008 PST