From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Matching regex case-sensitively in C strings? Date: Thu, 10 Nov 2022 14:25:01 -0800 Message-ID: <3F4674E4-1C35-4206-9CEC-7CFE178A4622@gmail.com> References: <218795BA-107D-4A86-9ACF-0A44BD2EC3D2@gmail.com> <83edufyoad.fsf@gnu.org> <580E87E6-DCFD-42AE-807A-339BBB3878C2@acm.org> <5711A9D3-7BCB-44AE-8911-5E039FF5FBB8@gmail.com> <838rklxmnm.fsf@gnu.org> <4FB7E922-5E36-4E0C-9681-9EC0E719CC8D@acm.org> <834jv8uvjj.fsf@gnu.org> <481B14DE-D209-4B5B-A517-0F721E7C5854@acm.org> <83wn83qcpr.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20867"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 23:25:57 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1otFzh-00059W-5X for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 23:25:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otFyv-0006Ph-9i; Thu, 10 Nov 2022 17:25:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otFyt-0006PB-JK for emacs-devel@gnu.org; Thu, 10 Nov 2022 17:25:07 -0500 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otFyr-0008RP-Gg; Thu, 10 Nov 2022 17:25:06 -0500 Original-Received: by mail-pj1-x102a.google.com with SMTP id m6-20020a17090a5a4600b00212f8dffec9so3164368pji.0; Thu, 10 Nov 2022 14:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rHkoivzy6BbhqNR8/4QEnCEsVm3+do7umblQtkImHXE=; b=ZtxQY/N6MnVXy8cNLTf3LIf/Sg0Ykh3oC8eaSkTDEL4nLrvOifRGWDg03duqwKrDLf XHdjRbIMbtBn7Wu8If3vfYoHkW4fmwjNAe5yFeD/LwFNE4s9cFfxq2cl5QleyKaDEtG+ wayBobuyN3tsAZTlZILQs4sWbBTU8SZfLATehFPkmTRQLS+Ot6WD1RuL0lwq4GTWHePH VocNJEt8jP9rQ6RWt1x2HIiO40HbKGWClNch4gM9+g6Tww89qUtnlhSfmXrRKdCriUhp i+RXnb9M8ywFm1fevE8YmRN1w7AwrIpuvaaLSC2SsI8tD5Nr9UQy+3psfOSwkqSgkwwB 9pqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rHkoivzy6BbhqNR8/4QEnCEsVm3+do7umblQtkImHXE=; b=g01EFVLTRbhtgfyJ8IxVD561X5NrsgR2LXg0j9gFwhL4GSLm2paEBU97l5zjMukcCb ijh6BzrC9qlEDbl7JqI7qAM9zXp96DfwrX7z/BnX9Gw/Gr4IfC0AvCgFnOabNS2XXNGH fNGyL2LI2S1RovM3XKWMghPq6HdA7MYKWfxCDaxuhodfjVVKoSRNAoWBTR/fzuKfQhqy qKum0yH8GBv1QRZ5r2DBqcsZq609Q3Fzu5t77xtgoMROTwzOfNE7F9eY8HOtHCwYIAOQ JPnQcra1jdQ/DGaMyJSP88xqPZbu7IipZ2EweEZ3A8tmOBERgzIKRxXrqw5htehH50lK vrZQ== X-Gm-Message-State: ACrzQf2V88H7kJFJ9n/AmSDVm4Nf6He7BQ58XrIUWPc8hduTEZPA9TKa F5b3ElZOwj7LNN2YnItHs/o= X-Google-Smtp-Source: AMsMyM4dDfDwtVnGK7FVJOoC4Z6tHM+7fyhmRtnl/a+fb10akG9L9jILLZULQFpPaUKD6RfyfOxTng== X-Received: by 2002:a17:902:e8d4:b0:17f:6845:9be0 with SMTP id v20-20020a170902e8d400b0017f68459be0mr2326388plg.158.1668119103408; Thu, 10 Nov 2022 14:25:03 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id d17-20020a170902ced100b001868ed86a95sm175609plg.174.2022.11.10.14.25.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Nov 2022 14:25:03 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=casouri@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299525 Archived-At: > On Nov 10, 2022, at 6:20 AM, Mattias Engdeg=C3=A5rd = wrote: >=20 > 10 nov. 2022 kl. 12.18 skrev Eli Zaretskii : >=20 >> Why not have two separate functions for these two jobs? The code is >> short, and some duplication is not an issue in this case. >=20 > Sure. Yuan Fu presented an alternative which used inline functions and = I don't mind that approach either. >=20 Yeah, I pushed that version onto feature/tree-sitter. Yuan=