Re: New function bytesize()
| From: | Sascha Schumann | Date: | Wed, 19 Jul 2000 14:53:31 +0000 |
| Subject: | Re: New function bytesize() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25120@lists.php.net to get a copy of this message | ||
On Wed, 19 Jul 2000, Mathieu Kooiman (ggInternet) wrote:
> sizeof(char) * (*string)->value.str.len ?!
> Anyone got some "binary safe unicode safe" idea on this?!
What are you actually trying to achieve? value.str.len contains
the length of the accessible area in bytes already. No need to
multiply it with a value which won't change over the next few
decades. In a couple of years, wchar_t might become more
prominent, but I don't see any reason to change the meaning of
the len property.
- Sascha