Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B44FD23B for ; Tue, 30 Oct 2012 06:46:34 +0000 (UTC) Received: (qmail 90817 invoked by uid 500); 30 Oct 2012 06:46:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 90544 invoked by uid 500); 30 Oct 2012 06:46:30 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 88564 invoked by uid 99); 30 Oct 2012 06:46:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 06:46:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pulkitsinghal@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 06:46:21 +0000 Received: by mail-we0-f178.google.com with SMTP id r6so3427287wey.23 for ; Mon, 29 Oct 2012 23:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=EGZburIav6BFkjRyWVs+aMnlTI8TTdznz0XaxC2tM+M=; b=TKcn9Gckm5OiaHpR1WGaPNKkbOmLldrqJCYmAB20YYdTWBDBnV+QBj5J/B8zxf/iIk WJJzpAoulj94sEFeNV9Rper2TpxrqQFZuTz1A+K6CKQ6JLkd5IqXN/nHwWSBVnNjLN36 PmJYaVWURoO+LhDj/tcKSnaWwB68evx6nUJeWsbMe0EvJskLq3ZTatgXeCvdzx3V24KP 9usPSm+C+P0eZA/1z2/t7rkoLee9TVznjRRjGJz8ASQcHYai998J718+/z3iIviEmbdv NXGVMbI+//dA9uQMqn5PGApIXRb9Q0rvEOU9RIyveV78vsLPwYka1rxc80/GHe3O+4Np cAdQ== MIME-Version: 1.0 Received: by 10.216.201.80 with SMTP id a58mr17404019weo.15.1351579560116; Mon, 29 Oct 2012 23:46:00 -0700 (PDT) Received: by 10.217.83.4 with HTTP; Mon, 29 Oct 2012 23:46:00 -0700 (PDT) Date: Tue, 30 Oct 2012 01:46:00 -0500 Message-ID: Subject: case-insensitive comparison inside js script for map/reduce From: Pulkit Singhal To: couchdb-user@apache.org Content-Type: multipart/alternative; boundary=0016e6db7bc791009804cd412340 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6db7bc791009804cd412340 Content-Type: text/plain; charset=UTF-8 I was wondering if there are already utility methods present in CouchDB 1.2.0 that perform a case-insensitive comparison? I know its really easy to write one but if its there and its already part of the core JS engine's exposed methods, I would rather not rewrite it. I like how reusing the sum and avg methods that are already present in CouchDB, simply makes sense. So a case-insensitive comparison method is already there then can someone tell me what its signature looks like exactly? Thanks! --0016e6db7bc791009804cd412340--