summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-10 05:48:43 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-10 05:48:43 +0000
commit7194267b3bdf68ad75bd6bee8e7c6377f7b0ea2f (patch)
tree6dcd08ef584fc777cf34517136d5ce3948840e45 /re.c
parentbe72d9a5da9be284d2bdb8047e50f14e014b7835 (diff)
2000-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/re.c b/re.c
index cc435e2..866b9b6 100644
--- a/re.c
+++ b/re.c
@@ -243,27 +243,27 @@ rb_reg_desc(s, len, re)
{
VALUE str = rb_str_new2("/");
rb_reg_expr_str(str, s, len);
- rb_str_cat(str, "/", 1);
+ rb_str_cat2(str, "/");
if (re) {
if (FL_TEST(re, REG_IGNORECASE))
- rb_str_cat(str, "i", 1);
+ rb_str_cat2(str, "i");
if (FL_TEST(re, REG_EXTENDED))
- rb_str_cat(str, "x", 1);
+ rb_str_cat2(str, "x");
if (FL_TEST(re, REG_POSIXLINE))
- rb_str_cat(str, "p", 1);
+ rb_str_cat2(str, "p");
if (FL_TEST(re, KCODE_FIXED)) {
switch ((RBASIC(re)->flags & KCODE_MASK)) {
case KCODE_NONE:
- rb_str_cat(str, "n", 1);
+ rb_str_cat2(str, "n");
break;
case KCODE_EUC:
- rb_str_cat(str, "e", 1);
+ rb_str_cat2(str, "e");
break;
case KCODE_SJIS:
- rb_str_cat(str, "s", 1);
+ rb_str_cat2(str, "s");
break;
case KCODE_UTF8:
- rb_str_cat(str, "u", 1);
+ rb_str_cat2(str, "u");
break;
}
}