Sgss_String_Charset
Provides the factory functions for Sgss_String_Charset_Interface

Description

Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/String/Charset.php (line 46)

Class overview

Variable

static string $internal

Internal (default) character set

Methods

static void factory (string $charset, [string|null $namespace = null])

Returns the character set converter of the specified class and namespace

static string getInternal ()

Returns the internal character set

static void setInternal (string $charset)

Sets the internal character set to the specified value

Variable detail

$internal 

Internal (default) character set

Signature:
public static string $internal = 'UTF-8'


Method detail

factory 

Returns the character set converter of the specified class and namespace

Parameters:
  • string $charset

    Converter class name

  • string|null $namespace

    Converter class namespace

Throws:
  • Sgss_String_Exception

    When the specified character set converter is illegal or not found

Used by:
Sgss_String::__construct()
Signature:
public static void factory (string $charset, [string|null $namespace = null])


getInternal 

Returns the internal character set

Used by:
Sgss_String::__construct()
Signature:
public static string getInternal ()


setInternal 

Sets the internal character set to the specified value

Parameters:
  • string $charset

    Character set to set

Signature:
public static void setInternal (string $charset)