ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Shared\CodePage Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Shared\CodePage:

Static Public Member Functions

static validate (string $codePage)
 
static numberToName (int $codePage)
 Convert Microsoft Code Page Identifier to Code Page Name which iconv and mbstring understands. More...
 
static getEncodings ()
 

Data Fields

const DEFAULT_CODE_PAGE = 'CP1252'
 

Static Private Attributes

static $pageArray
 

Detailed Description

Definition at line 7 of file CodePage.php.

Member Function Documentation

◆ getEncodings()

static PhpOffice\PhpSpreadsheet\Shared\CodePage::getEncodings ( )
static

Definition at line 95 of file CodePage.php.

95 : array
96 {
97 return self::$pageArray;
98 }

References PhpOffice\PhpSpreadsheet\Shared\CodePage\$pageArray.

◆ numberToName()

static PhpOffice\PhpSpreadsheet\Shared\CodePage::numberToName ( int  $codePage)
static

Convert Microsoft Code Page Identifier to Code Page Name which iconv and mbstring understands.

Parameters
int$codePageMicrosoft Code Page Indentifier
Returns
string Code Page Name

Definition at line 83 of file CodePage.php.

83 : string
84 {
85 if (array_key_exists($codePage, self::$pageArray)) {
86 return self::$pageArray[$codePage];
87 }
88 if ($codePage == 720 || $codePage == 32769) {
89 throw new PhpSpreadsheetException("Code page $codePage not supported."); // OEM Arabic
90 }
91
92 throw new PhpSpreadsheetException('Unknown codepage: ' . $codePage);
93 }

Referenced by PhpOffice\PhpSpreadsheet\Reader\Xls\readCodepage(), PhpOffice\PhpSpreadsheet\Reader\Xls\readDocumentSummaryInformation(), and PhpOffice\PhpSpreadsheet\Reader\Xls\readSummaryInformation().

+ Here is the caller graph for this function:

◆ validate()

static PhpOffice\PhpSpreadsheet\Shared\CodePage::validate ( string  $codePage)
static

Definition at line 70 of file CodePage.php.

70 : bool
71 {
72 return in_array($codePage, self::$pageArray, true);
73 }

Referenced by PhpOffice\PhpSpreadsheet\Reader\Xls\setCodepage().

+ Here is the caller graph for this function:

Field Documentation

◆ $pageArray

PhpOffice\PhpSpreadsheet\Shared\CodePage::$pageArray
staticprivate

Definition at line 11 of file CodePage.php.

Referenced by PhpOffice\PhpSpreadsheet\Shared\CodePage\getEncodings().

◆ DEFAULT_CODE_PAGE

const PhpOffice\PhpSpreadsheet\Shared\CodePage::DEFAULT_CODE_PAGE = 'CP1252'

Definition at line 9 of file CodePage.php.

Referenced by PhpOffice\PhpSpreadsheet\Reader\Xls\load().


The documentation for this class was generated from the following file: