ruby-changes:55204
From: nobu <ko1@a...>
Date: Tue, 2 Apr 2019 13:36:38 +0900 (JST)
Subject: [ruby-changes:55204] nobu:r67411 (trunk): date_parse.c: renamed JAPANESE prefix as JISX0301
nobu 2019-04-02 13:36:33 +0900 (Tue, 02 Apr 2019) New Revision: 67411 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67411 Log: date_parse.c: renamed JAPANESE prefix as JISX0301 Modified files: trunk/ext/date/date_parse.c Index: ext/date/date_parse.c =================================================================== --- ext/date/date_parse.c (revision 67410) +++ ext/date/date_parse.c (revision 67411) @@ -1212,7 +1212,7 @@ parse_iso2(VALUE str, VALUE hash) https://github.com/ruby/ruby/blob/trunk/ext/date/date_parse.c#L1212 return 1; } -#define JAPANESE_ERA_INITIALS "mtsh" +#define JISX0301_ERA_INITIALS "mtsh" static int gengo(int c) @@ -1254,11 +1254,11 @@ parse_jis(VALUE str, VALUE hash) https://github.com/ruby/ruby/blob/trunk/ext/date/date_parse.c#L1254 { static const char pat_source[] = #ifndef TIGHT_PARSER - "\\b([" JAPANESE_ERA_INITIALS "])(\\d+)\\.(\\d+)\\.(\\d+)" + "\\b([" JISX0301_ERA_INITIALS "])(\\d+)\\.(\\d+)\\.(\\d+)" #else BOS FPW_COM FPT_COM - "([" JAPANESE_ERA_INITIALS "])(\\d+)\\.(\\d+)\\.(\\d+)" + "([" JISX0301_ERA_INITIALS "])(\\d+)\\.(\\d+)\\.(\\d+)" TEE_FPT COM_FPW EOS #endif @@ -2978,7 +2978,7 @@ static int https://github.com/ruby/ruby/blob/trunk/ext/date/date_parse.c#L2978 jisx0301(VALUE str, VALUE hash) { static const char pat_source[] = - "\\A\\s*([" JAPANESE_ERA_INITIALS "])?(\\d{2})\\.(\\d{2})\\.(\\d{2})" + "\\A\\s*([" JISX0301_ERA_INITIALS "])?(\\d{2})\\.(\\d{2})\\.(\\d{2})" "(?:t" "(?:(\\d{2}):(\\d{2})(?::(\\d{2})(?:[,.](\\d*))?)?" "(z|[-+]\\d{2}(?::?\\d{2})?)?)?)?\\s*\\z"; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/