RE: [PHP-I18N] PHP intl APIs - part 1

2007-07-18 Thread tex
Ok, sounds pretty good. Thanks for the explanations. tex -Original Message- From: Vadim Savchuk [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 6:40 AM To: [EMAIL PROTECTED] Cc: 'Stanislav Malyshev'; php-i18n@lists.php.net; 'Hardik' Subject: Re: [PHP-I18N]

Re: [PHP-I18N] PHP intl APIs - part 1

2007-07-18 Thread Andrei Zmievski
I looked at that at the start of the Unicode project and found that ICU does have a need for persistent data. I don't think we can make it use our memory allocation engine. -Andrei On Jul 18, 2007, at 10:26 AM, Stanislav Malyshev wrote: Speaking of which, we might want to use u_setMemoryF

Re: [PHP-I18N] PHP intl APIs - part 1

2007-07-18 Thread Stanislav Malyshev
1) If I define a collator $coll, and then I reassign $coll to something else (perhaps another collator) is the original collator stored in $coll left in memory or will it get cleaned up at some point? It's cleaned up immediately. 2) Should we consider any functions useful for debugging memory

Re: [PHP-I18N] PHP intl APIs - part 1

2007-07-18 Thread Vadim Savchuk
tex wrote: > 1) If I define a collator $coll, and then I reassign $coll to something else > (perhaps another collator) > is the original collator stored in $coll left in memory or will it get > cleaned up at some point? Let me answer with examples. //-- Example 1 -

RE: [PHP-I18N] PHP intl APIs - part 1

2007-07-18 Thread tex
EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 12:13 AM To: [EMAIL PROTECTED] Cc: php-i18n@lists.php.net; 'Hardik' Subject: Re: [PHP-I18N] PHP intl APIs - part 1 > We need some close or release API. > > If I have a multilingual app, I will create a new collator for the > user'

Re: [PHP-I18N] PHP intl APIs - part 1

2007-07-18 Thread Stanislav Malyshev
We need some close or release API. If I have a multilingual app, I will create a new collator for the user's language. I need to close it, or the app will accumulate many collators. Right now I think once the variable is unset, the collator would be freed. -- Stanislav Malyshev, Zend Software A

RE: [PHP-I18N] PHP intl APIs - part 1

2007-07-17 Thread tex
to be able to free them up. Cache might be nice, but not urgent. tex -Original Message- From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 6:53 PM To: php-i18n@lists.php.net Subject: [PHP-I18N] PHP intl APIs - part 1 Attached are API descriptions for tw

[PHP-I18N] PHP intl APIs - part 1

2007-07-17 Thread Stanislav Malyshev
Attached are API descriptions for two ICU modules - collation and number formatting. The descriptions will also be checked into PECL module named "intl", and the actual code will follow soon. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829