From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Case mapping of sharp s Date: Wed, 18 Nov 2009 19:58:55 +0200 Message-ID: <83aayjn28w.fsf@gnu.org> References: <19200.4158.380820.761685@a1i15.kph.uni-mainz.de> <83lji6mgg4.fsf@gnu.org> <83iqd9m14h.fsf@gnu.org> <83bpj0mq2v.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1258567174 19518 80.91.229.12 (18 Nov 2009 17:59:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 17:59:34 +0000 (UTC) Cc: ulm@gentoo.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 18:59:27 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAooQ-0004uQ-5W for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 18:59:26 +0100 Original-Received: from localhost ([127.0.0.1]:56833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAooQ-0007Ra-2c for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 12:59:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAonw-0007Fp-Hw for emacs-devel@gnu.org; Wed, 18 Nov 2009 12:58:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAonr-0007Dp-Tb for emacs-devel@gnu.org; Wed, 18 Nov 2009 12:58:56 -0500 Original-Received: from [199.232.76.173] (port=54751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAonr-0007Dm-OY for emacs-devel@gnu.org; Wed, 18 Nov 2009 12:58:51 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:40293) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAonr-0003LC-1u for emacs-devel@gnu.org; Wed, 18 Nov 2009 12:58:51 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KTB00700GKQV800@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Wed, 18 Nov 2009 19:58:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KTB0032TGM0YDE0@a-mtaout22.012.net.il>; Wed, 18 Nov 2009 19:58:49 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117194 Archived-At: > From: Kenichi Handa > Cc: ulm@gentoo.org, emacs-devel@gnu.org > Date: Wed, 18 Nov 2009 15:26:32 +0900 >=20 > In article <83bpj0mq2v.fsf@gnu.org>, Eli Zaretskii w= rites: >=20 > > My idea was to use the same technique to fold the text as you sea= rch > > through it. You could, for example, fold one character at a time= , so > > that instead of comparing against X you compare against fold(X). >=20 > BM-search already does it. The problem is that the current > `fold' function can be applicable only to the last byte of a > character. Yes, I know: you explained it earlier in this thread. What I thought would help is that fold("SS") and fold("=C3=9F") have the same number= of bytes, which I think was the problem that prevented the use of BM.