phpDocumentor pivotx
modules
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Procedural File: module_i18n.php

Source Location: /modules/module_i18n.php

Page Details

Contains the functions needed to use PivotX in different languages (locales) and in UTF-8 encoding.

Functions
i18n_array_to_utf8  [line 206]

void i18n_array_to_utf8( &$item, &$key, [boolean $force = false], mixed $item, mixed $key  )

Encodes every string in the array to UTF-8 from the internal encoding in the items.

Parameters:
mixed   $item: 
mixed   $key: 
boolean   $force: 
   &$item: 
   &$key: 


[ Top ]
i18n_eucjp_to_utf8  [line 221]

string i18n_eucjp_to_utf8( string $string  )

Decodes a string to UTF-8 from EUC-JP

Parameters:
string   $string: 


[ Top ]
i18n_is_ascii  [line 46]

void i18n_is_ascii( $str  )

Checks if a string contains only 7bit ASCII bytes.

Parameters:
   $str: 


[ Top ]
i18n_is_utf8  [line 30]

void i18n_is_utf8( $string  )

Checks if a string is UTF-8 encoded.

Parameters:
   $string: 

Information Tags:
Link:  From

[ Top ]
i18n_ord  [line 242]

array i18n_ord( string $str, int $i  )

Mimics the ord() function for UTF-8 text.

A character in UTF-text may consist of several bytes. This function calculates the ASCII value without using the multibyte (mb) functions that was introduced in PHP 4.3.0. More info

Parameters:
string   $str:  UTF-8 string
int   $i:  The current position in the string

API Tags:
Return:  The ASCII value of the current character of string and the number of bytes used.


[ Top ]
i18n_str_to_utf8  [line 82]

string i18n_str_to_utf8( string $string, [boolean $force = false]  )

Encodes a string to UTF-8 from the internal encoding in the input string.

Parameters:
string   $string: 
boolean   $force: 


[ Top ]
i18n_ucfirst  [line 53]

void i18n_ucfirst( $string  )

Makes a string's first character uppercase.

Parameters:
   $string: 


[ Top ]
i18n_western_to_utf8  [line 125]

void i18n_western_to_utf8( $instr  )

PHP version of Perl's Encoding::FixLatin by Grant McLean. It will correctly transform Latin-1 (ISO-8859-1) and Win-Latin-1 (CP1252) characters to UTF-8, and preserve ASCII and well-formed UTF-8 multi-byte characters. It will always produce valid UTF-8, but might inroduce the odd 'typo'.

Based on code found on http://www.php.net/manual/en/function.utf8-encode.php Perl documentation at http://search.cpan.org/dist/Encoding-FixLatin/lib/Encoding/FixLatin.pm

Parameters:
   $instr: 


[ Top ]


Documentation generated on Tue, 05 Sep 2017 01:06:07 +0200 by phpDocumentor 1.4.3