Class PHPExcel_Shared_String
PHPExcel_Shared_String
Category: PHPExcel
Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: LGPL
Located at controlador/include/phpexcel/PHPExcel/Shared/String.php
private static
|
|
private static
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
|
|
public static
string
|
#
ControlCharacterOOXML2PHP( string $value = '' )
Convert from OpenXML escaped control character to PHP control character |
public static
string
|
#
ControlCharacterPHP2OOXML( string $value = '' )
Convert from PHP control character to OpenXML escaped control character |
public static
string
|
#
SanitizeUTF8( string $value )
Try to sanitize UTF8, stripping invalid byte sequences. Not perfect. Does not surrogate characters. |
public static
boolean
|
|
public static
string
|
#
FormatNumber( mixed $value )
Formats a numeric value as a string for output in various output writers forcing point as decimal separator in case locale is other than English. |
public static
string
|
#
UTF8toBIFF8UnicodeShort( string $value, mixed[] $arrcRuns = array() )
Converts a UTF-8 string into BIFF8 Unicode string data (8-bit string length) Writes the string using uncompressed notation, no rich text, no Asian phonetics If mbstring extension is not available, ASCII is assumed, and compressed notation is used although this will give wrong results for non-ASCII strings see OpenOffice.org's Documentation of the Microsoft Excel File Format, sect. 2.5.3 |
public static
string
|
#
UTF8toBIFF8UnicodeLong( string $value )
Converts a UTF-8 string into BIFF8 Unicode string data (16-bit string length) Writes the string using uncompressed notation, no rich text, no Asian phonetics If mbstring extension is not available, ASCII is assumed, and compressed notation is used although this will give wrong results for non-ASCII strings see OpenOffice.org's Documentation of the Microsoft Excel File Format, sect. 2.5.3 |
public static
string
|
#
ConvertEncoding( string $value, string $to, string $from )
Convert string from one encoding to another. First try mbstring, then iconv, finally strlen |
public static
string
|
|
public static
integer
|
#
CountCharacters( string $value, string $enc = 'UTF-8' )
Get character count. First try mbstring, then iconv, finally strlen |
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
StrToTitle( string $pValue = '' )
Convert a UTF-8 encoded string to title/proper case (uppercase every first character in each word, lower case all other characters) |
public static
boolean
|
#
convertToNumberIfFraction( string & $operand )
Identify whether a string contains a fractional numeric value, and convert it to a numeric if it is |
public static
string
|
#
getDecimalSeparator( )
Get the decimal separator. If it has not yet been set explicitly, try to obtain number formatting information from locale. |
public static
|
#
setDecimalSeparator( string $pValue = '.' )
Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF |
public static
string
|
#
getThousandsSeparator( )
Get the thousands separator. If it has not yet been set explicitly, try to obtain number formatting information from locale. |
public static
|
#
setThousandsSeparator( string $pValue = ',' )
Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF |
public static
string
|
#
getCurrencyCode( )
Get the currency code. If it has not yet been set explicitly, try to obtain the symbol information from locale. |
public static
|
#
setCurrencyCode( string $pValue = '$' )
Set the currency code. Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF |
public static
string
|
|
public static
mixed
|
#
testStringAsNumeric( string $value )
Retrieve any leading numeric part of a string, or return the full string if no leading numeric (handles basic integer or float, but not exponent or non decimal) |
string |
STRING_REGEXP_FRACTION
|
#
'(-?)(\d+)\s+(\d+\/\d+)'
|
private static
string[]
|
$_controlCharacters
Control characters array |
#
array()
|
private static
array
|
$_SYLKCharacters
SYLK Characters array |
#
array()
|
private static
string
|
$_decimalSeparator
Decimal separator |
|
private static
string
|
$_thousandsSeparator
Thousands separator |
|
private static
string
|
$_currencyCode
Currency code |
|
private static
boolean
|
$_isMbstringEnabled
Is mbstring extension avalable? |
|
private static
boolean
|
$_isIconvEnabled
Is iconv extension avalable? |