Commit graph

656 commits

Author SHA1 Message Date
Arcterus
156a87406d Merge pull request #343 from ebfe/crypto
Update rust-crypto
2014-07-07 14:54:16 -07:00
Michael Gehring
c399c8d039 Update rust-crypto 2014-07-07 23:45:55 +02:00
Arcterus
eb15cc32de Merge pull request #342 from ebfe/deprecation
Update for crate_id changes
2014-07-06 03:39:39 -07:00
Michael Gehring
a0b3b710c2 Update for crate_id related changes 2014-07-06 12:34:50 +02:00
Arcterus
d78d9e0129 Merge pull request #341 from cbjadwani/uniq
uniq - Add initial implementation
2014-07-06 02:54:29 -07:00
Chirag Jadwani
fc027254df uniq - Add initial implementation 2014-07-06 12:48:14 +05:30
Arcterus
34c156dbe3 Merge pull request #339 from kwantam/master
fmt: simplify short help message
2014-07-02 22:44:08 -07:00
Arcterus
c9146852cc Merge pull request #338 from ebfe/fix-build-master
Fix build with rust master
2014-07-02 22:43:43 -07:00
kwantam
a46e23c186 fmt: simplify short help message 2014-07-03 00:03:23 -04:00
Michael Gehring
a544332c1b &str is no longer indexable 2014-07-02 18:25:29 +02:00
Heather
acef6419c3 Merge pull request #334 from Arcterus/uutils-prefix
Improvements related to uutils
2014-07-02 08:03:06 +04:00
Arcterus
b414c345bc Merge pull request #336 from kwantam/master
fmt: updated tables for charwidth
2014-07-01 18:14:08 -07:00
kwantam
16ed7284d5 fmt: updated tables for charwidth 2014-07-01 19:07:45 -04:00
Arcterus
21d324e3fa Merge pull request #335 from akiradeveloper/feature/add-split-v3
split: Initial import
2014-07-01 15:47:04 -07:00
Akira Hayakawa
16463243e3 split: Initial import
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
2014-07-02 07:30:08 +09:00
Arcterus
2ea9dcfdc4 uutils: auto-generate true and false 2014-07-01 13:20:21 -07:00
Arcterus
0de4325287 uutils: handle prefixes instead of suffixes 2014-07-01 13:14:28 -07:00
Arcterus
8328ba2e0a Merge pull request #333 from ebfe/uutils
uutils: fix hashmap lifetime
2014-07-01 13:11:38 -07:00
Michael Gehring
afa0a9e6f0 uutils: fix 'uutils --help <util>' 2014-07-01 17:19:07 +02:00
Michael Gehring
401c216e6a uutils: fix hashmap lifetime 2014-07-01 17:04:39 +02:00
Heather
2245339c01 Merge pull request #330 from ebfe/fix-build-master
uutils: work around rustc strangeness
2014-07-01 14:23:47 +04:00
Heather
417f554ff6 Merge pull request #329 from Arcterus/multicall-install
Allow installation of the multicall binary
2014-07-01 14:19:40 +04:00
Michael Gehring
cd6f617bfc uutils: work around rustc strangeness 2014-07-01 11:20:14 +02:00
Arcterus
47896a6a69 Allow installation of the multicall binary 2014-07-01 01:07:16 -07:00
Oly Mi
995d290847 Merge pull request #328 from Arcterus/uutils-autogen
uutils: auto-generate programs to be built
2014-07-01 08:09:21 +04:00
Arcterus
5abb69df0d uutils: auto-generate programs to be built 2014-06-30 20:45:51 -07:00
Oly Mi
774695d697 Merge pull request #326 from Arcterus/id-fix
General fixes
2014-07-01 06:58:18 +04:00
Arcterus
fe1d30a904 Merge pull request #327 from akiradeveloper/feature/fix-typo-tail-readme
tail: fix readme typo
2014-06-30 19:52:42 -07:00
Akira Hayakawa
785d1512ab tail: fix readme typo
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
2014-07-01 11:26:18 +09:00
Arcterus
141e858407 Modify Makefile to build correctly when using BUILD 2014-06-30 17:41:15 -07:00
Arcterus
ab08e623ef id: fix build 2014-06-30 17:28:02 -07:00
Arcterus
cfb65d3f09 Merge pull request #322 from ebfe/fix-build-master
Remove use of raw bare pointers (*T -> *const T)
2014-06-30 17:23:09 -07:00
Michael Gehring
22743f04ae Remove use of raw bare pointers (*T -> *const T) 2014-07-01 02:17:35 +02:00
Arcterus
e5066d1978 Merge pull request #325 from kwantam/master
fmt: update use of *T to *const T
2014-06-30 16:30:19 -07:00
kwantam
c60c274b7c fmt: update use of *T to *const T 2014-06-30 19:27:54 -04:00
Arcterus
082ddefbda Merge pull request #323 from ebfe/seq
seq: fix build
2014-06-30 16:27:44 -07:00
Arcterus
760be3f9e1 Merge pull request #318 from kwantam/master
fmt: Knuth-Plass implementation; common: add unicode char_width function
2014-06-30 16:11:04 -07:00
kwantam
8be67f7d4d fmt Knuth-Plass implementation; unicode char_width
fmt:
- Implemented Knuth-Plass optimal linebreaking strategy.
- Added commandline switch -q for "quick" (greedy) split
  mode that does not use Knuth-Plass.
- Right now, Knuth-Plass runs about half as fast. It also
  uses more memory.
- Updated fmt to use char_width (see below) instead of
  assuming each character width is 1.
- Use i64 for demerits instead of int in K-P, since int is
  pointer sized and will only be 32 bits on some
  architectures.
- incremented version number
- Incorporated improvements suggested by huonw and Arcterus.
  - K-P uses indices of linebreaks vector instead of raw
    pointers. This gets rid of a lot of allocation of boxes
    and improves safety to boot.
- Added a support module for computing displayed widths of unicode
  strings based on Markus Kuhn's free implementation at
    http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
- This is in `charwidth.rs`, but this is a temporary measure
  until the Char trait implements .width(). I am submitting
  a PR for this soon, and the code in charwidth() is what's
  generated libcore.

closes #223
2014-06-30 19:09:22 -04:00
Michael Gehring
d88f7a0dc5 seq: fix build 2014-06-30 13:26:30 +02:00
Oly Mi
8a7f96c605 Merge pull request #321 from ebfe/fix-build-master
Update rust-crypto
2014-06-30 15:06:14 +04:00
Michael Gehring
cf7da259ee Update rust-crypto 2014-06-30 12:51:30 +02:00
Arcterus
48727e4ee8 Merge pull request #319 from torkve/master
realpath and relpath implementation
2014-06-29 13:03:52 -07:00
Vsevolod Velichko
c6f75a1419 relpath implementation 2014-06-29 23:59:25 +04:00
Vsevolod Velichko
c7e93c009e realpath implementation 2014-06-29 23:57:54 +04:00
Oly Mi
b8e200489e Merge pull request #320 from Arcterus/nohup-fix
Couple of minor fixes
2014-06-29 06:49:59 +04:00
Arcterus
643d9f0f32 Remove a couple of warnings 2014-06-28 16:57:19 -07:00
Arcterus
ae4ad2bb04 Remove useless main functions and fix nohup on Macs 2014-06-28 16:45:10 -07:00
Arcterus
8fd455f8e5 Merge pull request #234 from polyphemus/cut
Implement cut - implement #165
2014-06-27 09:30:53 -07:00
polyphemus
a470c330e6 Add cut to Cargo.toml, remove cut from To Do list 2014-06-27 17:39:59 +02:00
polyphemus
798af52077 Implement fields cutting
Adds an implementation for cut_fields() and creates a separate funtion
for the --output-delimiter, for performance reasons.

This implementation relies on ::read_until() to find the newline for us
but read_until() allocates a vector every time to return it's result.
This is not ideal and should be improved upon by passing a buffer to
read().

This follows/implements the POSIX specification and all the GNU
conventions. It is a drop-in replacement for GNU cut.

One improvement to GNU is that the --delimter option takes a character
as UTF8 as apposed to single byte only for GNU.

Performance is about two times slower than that of GNU cut.

Remove ranges' sentinel value, All cut functions iterate over the ranges
and therefore it only adds an extra iteration instead of improving
performance.
2014-06-27 17:39:49 +02:00