summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-30 08:01:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-30 08:01:11 +0000
commit0427a5037f2f453462aeadd6d717a4edf513a0bb (patch)
treed37bfe62a6777ad6e512b835a4e393158fe5f5af /include/ruby
parent3d9d04d52cd97c838eaf5d07ac384731070c7bb2 (diff)
downloadruby-0427a5037f2f453462aeadd6d717a4edf513a0bb.tar.gz
ruby-0427a5037f2f453462aeadd6d717a4edf513a0bb.tar.xz
ruby-0427a5037f2f453462aeadd6d717a4edf513a0bb.zip
* sprintf.c (rb_str_format): add %<name>s style named argument
support. a patch from Yusuke Endoh <mame at tsg.ne.jp> in [ruby-dev:35851]. * sprintf.c (rb_str_format): add gettext style named format (%{name}) support. inspired by [ruby-dev:35852]. * sprintf.c (GETNAMEARG): should raise KeyError exception when no named argument found. * hash.c (rb_hash_fetch): export fetch function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 5f6882d56..d99c39636 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -358,6 +358,7 @@ VALUE rb_hash_dup(VALUE);
VALUE rb_hash_freeze(VALUE);
VALUE rb_hash_aref(VALUE, VALUE);
VALUE rb_hash_lookup(VALUE, VALUE);
+VALUE rb_hash_fetch(VALUE, VALUE);
VALUE rb_hash_aset(VALUE, VALUE, VALUE);
VALUE rb_hash_delete_if(VALUE);
VALUE rb_hash_delete(VALUE,VALUE);