Support Joomla!
Main
News
Help
Forum
Extensions
Shop
Developers
Joomla! 1.5 Documentation
Home
API reference wiki
Browse SVN repository
Packages
Select a package...
Unknown
Cache_Lite
com-tecnick-tcpdf
core
Joomla-Framework
OpenID
patError
patTemplate
PEAR
phpGACL
PHPMailer
PHP_Compat
utf8
Yadis
Package: OpenID
Other documents
Changelog
To do
To do (2)
Element index (all)
Error log
Install
Copyright
License
Developer Network License
The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the
Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /openid/Services/Yadis/Misc.php
Documentation is available at
Misc.php
<?php
/**
* Miscellaneous utility values and functions for OpenID and Yadis.
*
*
@package
OpenID
*
@author
JanRain, Inc. <
[email protected]
>
*
@copyright
2005 Janrain, Inc.
*
@license
http://www.gnu.org/copyleft/lesser.html LGPL
*/
$__UCSCHAR
=
array
(
array
(
0xA0
,
0xD7FF
)
,
array
(
0xF900
,
0xFDCF
)
,
array
(
0xFDF0
,
0xFFEF
)
,
array
(
0x10000
,
0x1FFFD
)
,
array
(
0x20000
,
0x2FFFD
)
,
array
(
0x30000
,
0x3FFFD
)
,
array
(
0x40000
,
0x4FFFD
)
,
array
(
0x50000
,
0x5FFFD
)
,
array
(
0x60000
,
0x6FFFD
)
,
array
(
0x70000
,
0x7FFFD
)
,
array
(
0x80000
,
0x8FFFD
)
,
array
(
0x90000
,
0x9FFFD
)
,
array
(
0xA0000
,
0xAFFFD
)
,
array
(
0xB0000
,
0xBFFFD
)
,
array
(
0xC0000
,
0xCFFFD
)
,
array
(
0xD0000
,
0xDFFFD
)
,
array
(
0xE1000
,
0xEFFFD
)
)
;
$__IPRIVATE
=
array
(
array
(
0xE000
,
0xF8FF
)
,
array
(
0xF0000
,
0xFFFFD
)
,
array
(
0x100000
,
0x10FFFD
)
)
;
function
_pct_escape_unicode
(
$char_match
)
{
$c
=
$char_match
[
0
]
;
$result
=
""
;
for
(
$i
=
0
;
$i
<
strlen
(
$c
)
;
$i
++
)
{
$result
.=
"%"
.
sprintf
(
"%X"
,
ord
(
$c
[
$i
]
))
;
}
return
$result
;
}
function
_startswith
(
$s
,
$stuff
)
{
return
strpos
(
$s
,
$stuff
)
===
0
;
}
?>
Documentation generated on Mon, 05 Mar 2007 21:10:47 +0000 by
phpDocumentor 1.3.1