summaryrefslogtreecommitdiff
path: root/ext/date/date_parse.c
AgeCommit message (Collapse)Author
2020-12-22[ruby/date] Deep-freeze internal constants.Marc-Andre Lafortune
Probably not strictly necessary, but good principle anyways. Notes: Merged: https://github.com/ruby/ruby/pull/3946
2020-04-14[ruby/date] Suppress -Wchar-subscripts warnings by Cygwin gcc 9.3.0Nobuyoshi Nakada
https://github.com/ruby/date/commit/9968eb69f0
2019-08-12date_parse.c: trim offNobuyoshi Nakada
* ext/date/date_parse.c (date_zone_to_diff): trim off by zone name length.
2019-08-12date_parse.c: avoid copyingNobuyoshi Nakada
* ext/date/date_parse.c (date_zone_to_diff): get rid of copying the whole argument string.
2019-07-16Allow mday in Date.iso8601 to be omittedNobuyoshi Nakada
[Bug #12285]
2019-04-09date: support for Reiwa, new Japanese eranobu
[Feature #15742] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-03* expand tabs.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-03date: make zone a substring to copy encoding and taintednessnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-02date_parse.c: name JISX0301_DEFAULT_ERAnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-02date_parse.c: renamed JAPANESE prefix as JISX0301nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-02* expand tabs.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-02date: use del_hash to extract an element destructivelynobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-01date_parse.c: removed 'r' which is not in JIS X 0301 yetnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-01* expand tabs.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-01date_parse.c: extract Japanese era initialsnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-01RSTRING_PTR may not be terminated in the futurenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-01surround macro block with do/whilenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-25date_parse.c, date_strptime.c: ensure symbols static allnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-01* ext/date/date_parse.c (date_zone_to_diff): it's nonsence and reallyusa
harm that to use unary minus operator with unsigned value. get rid of test failures introduced at r56312. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-01date_parse.c: str_end_withnobu
* ext/date/date_parse.c (str_end_with): extract to tell if a string ends with the other string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-01zonetab.h: use strncmpnobu
* ext/date/zonetab.h (zonetab): use strncmp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-01date_parse.c: refactornobu
* ext/date/date_parse.c (date_zone_to_diff): refactor without allocating strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-08ext/date/zonetab.list: gperf timezone namesnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-08ext/date: constifynobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-08suppress warningsnobu
* ext/date/date_parse.c (date_zone_to_diff): suppress parentheses warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-16date_parse.c: use ALLOCVnobu
* ext/date/date_parse.c (s3e, date_zone_to_diff, parse_ddd_cb): use ALLOCV instead of ALLOCA get rid of stack overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03ext: prefer RB_TYPE_P over comparison TYPE with constantsnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-09date_parse.c: get rid of backtrack explosionnobu
* ext/date/date_parse.c (parse_time): unset case-insensitive flag for [:alpha:], which already implies both cases, to get rid of backtrack explosion. [ruby-core:58876] [Bug #9221] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-21date_parse.c: missing wdaynobu
* ext/date/date_parse.c (rfc2822_cb): check if wday is given, since it can be omitted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-09 * ext/date/date_parse.c (date_zone_to_diff): [ruby-core:55831].tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-11 * ext/date/date_parse.c (date__parse): revised the tight parsertadf
(about handling of apostrophes). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-10 * ext/date/date_parse.c: edited about era.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-03 * ext/date/date_parse.c (parse_eu): should capture apostrophe too.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-03 * ext/date/date_parse.c (date__parse): revised the tight parser.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-28 * ext/date/date_parse.c (iso8601_{ext,bas}_time): should not matchtadf
empty string. - この行以下は無視されます -- M ChangeLog M ext/date/date_parse.c M test/date/test_date_parse.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-28 * ext/date/date_parse.c (date__parse): revised the tight parser.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-21 * ext/date/date_parse.c (date__parse): uses more tight parser iftadf
defined TIGHT_PARSER. now inactivated; because it introduces incompatibilities and it is a bit slow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-03 * ext/date/date_{parse,strptime}.c [ruby-dev:45303].tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18ext/date/date_parse.c: [ruby-core:42173].tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-28* ext/date/date_parse.c (date_zone_to_diff): keep a temporary stringnagachika
stored in variable while the contents buffer is beeing used. * ext/date/date_parse.c (date_zone_to_diff): get rid of out of bounds memory read. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13* ext/date/date_parse.c parse_ddd_cb): fix r32896. RB_GC_GUARDnagachika
insertion position was mistaken. [ruby-dev:44337] [Bug #5152] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-09* ext/date/date_parse.c (date_zone_to_diff): add RB_GC_GUARD.nagachika
[ruby-dev:44337] [Bug #5152] * ext/date/data_parse.c (parse_ddd_cb): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-26 * ext/date/date_parse.c: should use ALLOCA_N.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 * ext/date/date_core.c: use simple/complex mode instead of light/right mode.tadf
* test/date/*.rb: followed the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21 * ext/date/date_{core,parse}.c: moved nearly all core code from ext/date/lib.tadf
* ext/date/lib/{date,date/format}.rb: removed nearly all code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15* remove trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-09fixed indent.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 * ext/date/date_{parse,strptime}.c: introduced some macros.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 * ext/date/date_core.c (date_zone_to_diff): renamed.tadf
* ext/date/date_parse.c: ditto. * ext/date/date_strptime.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 * ext/date/date_parse.c (n2i): takes long.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e