From f64e7c834f95ecc1437394b2aba5ca03e9b10968 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 9 Jun 2012 14:36:17 +0000 Subject: string.c: rb_str_symname_p * string.c (rb_str_symname_p): new function that checks if the string is valid as a symbol name. split from sym_inspect(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 48a3a763d5..d17d2ba826 100644 --- a/internal.h +++ b/internal.h @@ -187,6 +187,7 @@ size_t rb_strftime(char *s, size_t maxsize, const char *format, rb_encoding *enc /* string.c */ int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p); +int rb_str_symname_p(VALUE); /* struct.c */ VALUE rb_struct_init_copy(VALUE copy, VALUE s); -- cgit v1.2.3