diff options
author | Wez Furlong <wez@php.net> | 2001-07-04 10:10:30 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2001-07-04 10:10:30 +0000 |
commit | f1364ebf3ead89f145af573e3b90f3503898b0ad (patch) | |
tree | d33144965c977b7fa15233997cab3b84ff339a5e /ext/standard/php_string.h | |
parent | 649d14ae7966496a57d3a91bc8e93b1865bd565e (diff) | |
download | php-git-f1364ebf3ead89f145af573e3b90f3503898b0ad.tar.gz |
(PHP nl_langinfo) Added function when provided by OS
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset
@- Added nl_langinfo() (when OS provides it) that returns locale
information. (Wez Furlong)
# There are a lot of constants used by nl_langinfo; should we do something
# along the lines of what we do for syslog?
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r-- | ext/standard/php_string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index a223043f9f..7e0ea30dcb 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -66,6 +66,7 @@ PHP_FUNCTION(ord); PHP_FUNCTION(nl2br); PHP_FUNCTION(setlocale); PHP_FUNCTION(localeconv); +PHP_FUNCTION(nl_langinfo); PHP_FUNCTION(stristr); PHP_FUNCTION(chunk_split); PHP_FUNCTION(parse_str); @@ -88,6 +89,9 @@ PHP_FUNCTION(strcoll); PHP_MINIT_FUNCTION(localeconv); PHP_MSHUTDOWN_FUNCTION(localeconv); #endif +#if HAVE_NL_LANGINFO +PHP_MINIT_FUNCTION(nl_langinfo); +#endif #define strnatcmp(a, b) \ strnatcmp_ex(a, strlen(a), b, strlen(b), 0) |