[#7968] array .{first, last, at} — Kazunori NISHI <kazunori@...>

西@九大です。

25 messages 1999/10/07
[#7969] Re: array .{first, last, at} — nobu.nakada@... 1999/10/07

なかだです。

[#7983] Re: array .{first, last, at} — Kazunori NISHI <kazunori@...> 1999/10/12

西@九大です。

[#7984] Re: array .{first, last, at} — matz@... (Yukihiro Matsumoto) 1999/10/12

まつもと ゆきひろです

[#7985] [patch] Array#delete_at w/ minus value — EGUCHI Osamu <eguchi@...> 1999/10/12

えぐち@エスアンドイーです。

[ruby-dev:8153] /\W/ and /[\W]/ (Re: [SGC] count chars)

From: WATANABE Hirofumi <eban@...>
Date: 1999-10-31 05:04:40 UTC
List: ruby-dev #8153
わたなべです.

ruby-dev に移ります.

Koretsugu Daigoro <tmmcross@hk.airnet.ne.jp> writes:

:日本語でない文字を指定したい場面が昔あったような気がするので、
:できれば /\W/ と /[\W]/ は同じ振る舞いをしてほしいです。

/[\W]/ のほうが間違ってる気がするので /\W/ に合わせてみました.
if 文が複雑になってきたから current_mbctype を for loop の外
に追い出したほうがいいかな.

--- regex.c.orig	Thu Oct  7 09:49:59 1999
+++ regex.c	Sun Oct 31 13:12:42 1999
@@ -1408,3 +1408,4 @@
 	      if (SYNTAX(c) != Sword &&
-		  (current_mbctype || SYNTAX(c) != Sword2))
+		  (current_mbctype && !re_mbctab[c] ||
+		  !current_mbctype && SYNTAX(c) != Sword2))
 		SET_LIST_BIT(c);

In This Thread

Prev Next