1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
nahi ffc136a024 * lib/csv.rb: add extra pamameter to specify row(record) separater character.
To parse Mac's CR separated CSV, do like this.
    CSV.open("mac.csv", "r", ?,,?\r) { |row| p row.to_a }
  The 3rd parameter in this example ?, is for column separater and the 4th ?\r
  is for row separater.  Row separater is nil by default.  Nil separater means
  "\r\n" or "\n".

* test/csv/test_csv.rb: add tests for above feature.

* test/csv/mac.csv: added.  Sample CR separated CSV file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-15 10:07:42 +00:00
..
cgi
date
drb Added documentation in RDoc format. 2003-09-12 02:29:38 +00:00
irb
net
optparse
racc
rexml * bignum.c (rb_big_and): convert argument using 'to_int'. 2003-09-12 03:16:31 +00:00
runit
shell
test
uri
webrick
xmlrpc
yaml
base64.rb
benchmark.rb
cgi-lib.rb
cgi.rb
complex.rb
csv.rb * lib/csv.rb: add extra pamameter to specify row(record) separater character. 2003-09-15 10:07:42 +00:00
date.rb
date2.rb
debug.rb
delegate.rb
drb.rb
e2mmap.rb
English.rb
Env.rb
erb.rb
eregex.rb
fileutils.rb
finalize.rb
find.rb
forwardable.rb
ftools.rb
getoptlong.rb
getopts.rb
gserver.rb
importenv.rb
ipaddr.rb
irb.rb
jcode.rb
mailread.rb
mathn.rb
matrix.rb
mkmf.rb * bignum.c (rb_big_and): convert argument using 'to_int'. 2003-09-12 03:16:31 +00:00
monitor.rb
mutex_m.rb
observer.rb
open-uri.rb
open3.rb
optparse.rb
ostruct.rb
parsearg.rb
parsedate.rb
pathname.rb
ping.rb
pp.rb
prettyprint.rb
profile.rb
profiler.rb
pstore.rb
rational.rb
readbytes.rb
README
resolv-replace.rb
resolv.rb
rubyunit.rb
scanf.rb Took out useless @matched_item variable; some small refactoring. 2003-09-11 22:06:14 +00:00
set.rb
shell.rb
shellwords.rb
singleton.rb
sync.rb
tempfile.rb
thread.rb
thwait.rb
time.rb
timeout.rb
tmpdir.rb
tracer.rb
tsort.rb
un.rb
uri.rb
weakref.rb
webrick.rb
yaml.rb

English.rb	lets Perl'ish global variables have English names
Env.rb		loads importenv.rb
README		this file
base64.rb	encodes/decodes base64 (obsolete)
benchmark.rb	a benchmark utility
cgi-lib.rb	simple CGI support library (old style)
cgi.rb		CGI support library
cgi/session.rb	CGI session class
complex.rb	complex number suppor
date.rb		date object
date/format.rb	date parsing and formatting
date2.rb	date object (obsolete; use date)
debug.rb	ruby debugger
delegate.rb	delegates messages to other object
e2mmap.rb	exception utilities
erb.rb		tiny eRuby library
eregex.rb	extended regular expression (just a proof of concept)
fileutils.rb	file utilities
finalize.rb	adds finalizer to the object
find.rb		traverses directory tree
forwardable.rb	explicit delegation library
ftools.rb	file tools
getoptlong.rb	GNU getoptlong compatible
getopts.rb	parses command line options (use getoptlong)
importenv.rb	imports environment variables as global variables
ipaddr.rb	defines the IPAddr class
irb.rb		interactive ruby
jcode.rb	Japanese text handling (replace String methods)
mailread.rb	reads mail headers
mathn.rb	extended math operation
matrix.rb	matrix calculation library
mkmf.rb		Makefile maker
monitor.rb	exclusive region monitor for thread
mutex_m.rb	mutex mixin
net/ftp.rb	ftp access
net/http.rb	HTTP access
net/imap.rb	IMAP4 access
net/pop.rb	POP3 access
net/protocol.rb	abstract class for net library (DO NOT USE)
net/smtp.rb	SMTP access
net/telnet.rb	telnet library
observer.rb	observer desing pattern library (provides Observable)
open-uri.rb     easy-to-use network interface using URI and Net
open3.rb	opens subprocess connection stdin/stdout/stderr
ostruct.rb	python style object
parsearg.rb	argument parser using getopts
parsedate.rb	parses date string
ping.rb		checks whether host is up, using TCP echo.
pp.rb		pretty print objects
prettyprint.rb	pretty printing algorithm
profile.rb	runs ruby profiler
profiler.rb	ruby profiler module
pstore.rb	persistent object strage using marshal
racc/parser.rb	racc (Ruby yACC) runtime
rational.rb	rational number support
readbytes.rb	define IO#readbytes
resolv-replace.rb	replace Socket DNS by resolve.rb
resolv.rb	DNS resolver in Ruby
set.rb		defines the Set class
shell.rb	runs commands and does pipeline operations like shell
shellwords.rb	split into words like shell
singleton.rb	singleton design pattern library
sync.rb		2 phase lock
tempfile.rb	temporary file with automatic removal
thread.rb	thread support
thwait.rb	thread syncronization class
time.rb		RFC2822, RFC2616, ISO8601 style time formatting/parsing
timeout.rb	provides timeout
tracer.rb	execution tracer
tsort.rb	topological sorting
uri.rb		URI support
uri/ftp.rb	ftp scheme support
uri/http.rb	http scheme support
uri/https.rb	https scheme support
uri/ldap.rb	ldap scheme support
uri/mailto.rb	mailto scheme support
weakref.rb	weak reference class