Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24170 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32872 invoked by uid 1010); 21 Jun 2006 17:14:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32857 invoked from network); 21 Jun 2006 17:14:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2006 17:14:43 -0000 X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.73 mail2.panix.com Received: from ([166.84.1.73:53361] helo=mail2.panix.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 26/D2-10952-18E79944 for ; Wed, 21 Jun 2006 13:14:43 -0400 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail2.panix.com (Postfix) with ESMTP id 1F2F09D83E for ; Wed, 21 Jun 2006 13:14:51 -0400 (EDT) Received: (from analysis@localhost) by panix5.panix.com (8.11.6p3/8.8.8/PanixN1.1) id k5LHEpY26916 for internals@lists.php.net; Wed, 21 Jun 2006 13:14:51 -0400 (EDT) Date: Wed, 21 Jun 2006 13:14:51 -0400 To: PHP Internals List Message-ID: <20060621171450.GA2632@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i Subject: strlen() under unicode.semantics From: danielc@analysisandsolutions.com (Daniel Convissor) Hi: Enjoyed Andrei's talk at the NYPHP Conference last week about unicode in PHP 6. He mentioned that when unicode.semantics is on, strlen() will return the number of characters rather than the number of bytes, like mb_string() does or strlen() if mbstring.func_overload is on. The hitch here is there are situations where one needs to know how many bytes are in a string. Is there a function I've overlooked that does this or will do this, please? Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409