Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63711 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82710 invoked from network); 30 Oct 2012 06:27:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2012 06:27:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:39734] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/26-31721-C537F805 for ; Tue, 30 Oct 2012 01:27:40 -0500 Received: by mail-ie0-f170.google.com with SMTP id c12so9229422ieb.29 for ; Mon, 29 Oct 2012 23:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pzn+cZldtnHiFCDzgCqB0rIK2ECe8u5J7bJTadj2FNI=; b=XuAFrwczciaf+HK+XmYYOeUG8mx9LfgNgDch9R6duycJhAmv4sbhw9zUpnyTv5ubGA owkw61BZnX9/XsS+fzgYwyJEmE4NmP6OGCR7ZETuJngdIvMGKSPyWfPKOnPXIT+PPIDe oj2NYBaWxWuNRUJP5u6Eyszx7lYpGtRvb1ljhS5GCdZyobsd5ZMYkFLO0vs0q3JCFf02 K6/LZmDxNmDtRJc6chnVDBM/XvUwR5hN4x/yAAX3AQZR6dtVV5RORYx5cSo6HJ+l8b05 ENXHw0KE4I7yPdSiUgdei8/WTDR7rVpuYyi0bSW6Jqx4Ds+qbhB/OiBb0nCbP9uEaFBI s7hg== MIME-Version: 1.0 Received: by 10.50.5.236 with SMTP id v12mr585037igv.6.1351578457481; Mon, 29 Oct 2012 23:27:37 -0700 (PDT) Received: by 10.64.33.143 with HTTP; Mon, 29 Oct 2012 23:27:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 30 Oct 2012 07:27:37 +0100 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] ICU UConverter implementation for ext/intl From: pierre.php@gmail.com (Pierre Joye) hi Sara! On Tue, Oct 30, 2012 at 2:57 AM, Sara Golemon wrote: > http://wiki.php.net/rfc/uconverter > > Discuss! Nice job! Some comments, raw :) : - the UCNV prefix is not necessary, we are in the UConverter class already, I would simply use LATIN_1, or ILLEGAL for exampe. - It is OO, we should or could use exception. Warning are not nice to deal with and errors are quite common during conversion - I would add ERROR_ to the error related constants (UNASSIGNED & co), or? Some questions, is 'latin1' the same than const UCNV_LATIN_1? or is there any relation between the two? Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org