PHPExcel_Shared_String
| category | PHPExcel |
|---|---|
| package | PHPExcel_Shared |
| copyright | Copyright (c) 2006 - 2013 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 (
stringValue to unescape
stringControlCharacterPHP2OOXML(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 (
stringValue to escape
stringConvertEncoding(string $value, string $to, string $from) : string
First try mbstring, then iconv, finally strlen
string
stringEncoding to convert to, e.g. 'UTF-8'
stringEncoding to convert from, e.g. 'UTF-16LE'
stringCountCharacters(string $value, string $enc) : int
First try mbstring, then iconv, finally strlen
string
stringEncoding
intCharacter countFormatNumber(mixed $value) : string
mixed
stringIsUTF8(string $value) : boolean
string
booleanSYLKtoUTF8(string $pValue) : string
string
stringUTF-8 encoded stringSanitizeUTF8(string $value) : string
Not perfect. Does not surrogate characters.
string
stringStrToLower(string $pValue) : string
stringUTF-8 encoded string
stringStrToTitle(string $pValue) : string
stringUTF-8 encoded string
stringStrToUpper(string $pValue) : string
stringUTF-8 encoded string
stringSubstring(string $pValue, int $pStart, int $pLength) : string
First try mbstring, then iconv, finally strlen
stringUTF-8 encoded string
intStart offset
intMaximum number of characters in substring
stringUTF8toBIFF8UnicodeLong(string $value) : string
2.5.3
stringUTF-8 encoded string
stringUTF8toBIFF8UnicodeShort(string $value, mixed[] $arrcRuns) : string
2.5.3
stringUTF-8 encoded string
mixed[]Details of rich text runs in $value
stringbuildCharacterSets()
convertToNumberIfFraction(string $operand) : boolean
string&$operand string value to test
booleangetCurrencyCode() : string
If it has not yet been set explicitly, try to obtain the symbol information from locale.
stringgetDecimalSeparator() : string
If it has not yet been set explicitly, try to obtain number formatting information from locale.
stringgetIsIconvEnabled() : boolean
booleangetIsMbstringEnabled() : boolean
booleangetThousandsSeparator() : string
If it has not yet been set explicitly, try to obtain number formatting information from locale.
stringsetCurrencyCode(string $pValue)
Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
stringCharacter for currency code
setDecimalSeparator(string $pValue)
Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
stringCharacter for decimal separator
setThousandsSeparator(string $pValue)
Only used by PHPExcel_Style_NumberFormat::toFormattedString() to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
stringCharacter for thousands separator
testStringAsNumeric(string $value) : mixed
string
mixedstring 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 |
stringUTF-16 encoded data to decode.
stringUTF-8 / ISO encoded data._buildControlCharacters()
_buildSYLKCharacters()
$_SYLKCharacters
$var array
$_controlCharacters : string[]
$_currencyCode : string
$_decimalSeparator : string
$_isIconvEnabled : boolean
$_isMbstringEnabled : boolean
$_thousandsSeparator : string
STRING_REGEXP_FRACTION