PHPExcel_Shared_String
category | PHPExcel |
---|---|
package | PHPExcel_Shared |
copyright | Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) |
ControlCharacterOOXML2PHP(string $value) : string
That's correct, control characters are stored directly in the shared-strings table.
We do encode characters that cannot be represented in XML using the following escape sequence:
xHHHH where H represents a hexadecimal character in the character's value...
So you could end up with something like x0008 in a string (either in a cell value (
string
Value to unescape
string
ControlCharacterPHP2OOXML(string $value) : string
That's correct, control characters are stored directly in the shared-strings table.
We do encode characters that cannot be represented in XML using the following escape sequence:
xHHHH where H represents a hexadecimal character in the character's value...
So you could end up with something like x0008 in a string (either in a cell value (
string
Value to escape
string
ConvertEncoding(string $value, string $to, string $from) : string
First try mbstring, then iconv, finally strlen
string
string
Encoding to convert to, e.g. 'UTF-8'
string
Encoding to convert from, e.g. 'UTF-16LE'
string
CountCharacters(string $value, string $enc) : int
First try mbstring, then iconv, finally strlen
string
string
Encoding
int
Character countFormatNumber(mixed $value) : string
mixed
string
IsUTF8(string $value) : boolean
string
boolean
SYLKtoUTF8(string $pValue) : string
string
string
UTF-8 encoded stringSanitizeUTF8(string $value) : string
Not perfect. Does not surrogate characters.
string
string
StrToLower(string $pValue) : string
string
UTF-8 encoded string
string
StrToTitle(string $pValue) : string
string
UTF-8 encoded string
string
StrToUpper(string $pValue) : string
string
UTF-8 encoded string
string
Substring(string $pValue, int $pStart, int $pLength) : string
First try mbstring, then iconv, finally strlen
string
UTF-8 encoded string
int
Start offset
int
Maximum number of characters in substring
string
UTF8toBIFF8UnicodeLong(string $value) : string
2.5.3
string
UTF-8 encoded string
string
UTF8toBIFF8UnicodeShort(string $value, mixed[] $arrcRuns) : string
2.5.3
string
UTF-8 encoded string
mixed[]
Details of rich text runs in $value
string
buildCharacterSets()
convertToNumberIfFraction(string $operand) : boolean
string
&$operand string value to test
boolean
getCurrencyCode() : string
If it has not yet been set explicitly, try to obtain the symbol information from locale.
string
getDecimalSeparator() : string
If it has not yet been set explicitly, try to obtain number formatting information from locale.
string
getIsIconvEnabled() : boolean
boolean
getIsMbstringEnabled() : boolean
boolean
getThousandsSeparator() : string
If it has not yet been set explicitly, try to obtain number formatting information from locale.
string
setCurrencyCode(string $pValue)
Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
string
Character for currency code
setDecimalSeparator(string $pValue)
Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
string
Character for decimal separator
setThousandsSeparator(string $pValue)
Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
string
Character for thousands separator
testStringAsNumeric(string $value) : mixed
string
mixed
string or only the leading numeric part of the stringutf16_decode(string $str, $bom_be) : string
Can handle both BOM'ed data and un-BOM'ed data. Assumes Big-Endian byte order if no BOM is available. This function was taken from http://php.net/manual/en/function.utf8-decode.php and $bom_be parameter added.
access | public |
---|---|
version | 0.2 / 2010-05-13 |
author | Rasmus Andersson {@link http://rasmusandersson.se/} |
author | vadik56 |
string
UTF-16 encoded data to decode.
string
UTF-8 / ISO encoded data._buildControlCharacters()
_buildSYLKCharacters()
$_SYLKCharacters
$var array
$_controlCharacters : string[]
$_currencyCode : string
$_decimalSeparator : string
$_isIconvEnabled : boolean
$_isMbstringEnabled : boolean
$_thousandsSeparator : string
STRING_REGEXP_FRACTION