Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unused variables. | stefanf | 2005-04-09 | 1 | -1/+1 |
| | |||||
* | Expand contractions. | ru | 2005-02-13 | 1 | -1/+1 |
| | |||||
* | Sort sections. | ru | 2005-01-18 | 1 | -2/+2 |
| | |||||
* | Added the EXIT STATUS section where appropriate. | ru | 2005-01-17 | 1 | -1/+1 |
| | |||||
* | Formatting fixes. | ru | 2005-01-11 | 1 | -9/+11 |
| | | | | (This exposes a bug in mdoc(7) for which a patch has been sent upstream.) | ||||
* | tr(1) attempts to convert \n[n][n] sequences into octal digits, but doesn't | jkh | 2004-11-14 | 1 | -1/+1 |
| | | | | | | | | check to see that a given digit is actually an octal digit. This leads to unusual consequences if passed in values like \9. Reported by: Joseph Davison (OpenDarwin project) MFC after: 1 week | ||||
* | Tweak markup of quoted strings and characters: use Dq instead of enclosing | tjr | 2004-07-23 | 1 | -12/+44 |
| | | | | strings in ``obsolete quotes''. Use Li and Ql where appropriate. | ||||
* | Add a lengthy discussion of why "tr a-z A-Z" and "tr A-Z a-z" are not the | tjr | 2004-07-23 | 1 | -1/+41 |
| | | | | right way to perform case-conversion. | ||||
* | Fix description of cmap_lookup_hard(). | tjr | 2004-07-14 | 1 | -1/+1 |
| | |||||
* | Remove unused member of struct csclass: csc_value. | tjr | 2004-07-14 | 1 | -1/+0 |
| | |||||
* | Splay the left and right subtrees on min - 1 and max + 1, respectively, | tjr | 2004-07-14 | 1 | -34/+20 |
| | | | | | before trying to coalesce. Forgetting to splay caused us to miss many opportunities for coalescing. | ||||
* | Initialize cs_invert to "false" in new csets. | tjr | 2004-07-10 | 1 | -0/+1 |
| | |||||
* | Report input errors instead of ignoring them. | tjr | 2004-07-09 | 1 | -0/+8 |
| | |||||
* | Update for multibyte character support: remove BUGS and change the | tjr | 2004-07-09 | 1 | -7/+2 |
| | | | | description of the -c option to refer to "values" instead of "byte values". | ||||
* | Add support for multibyte characters. The challenge here was to use | tjr | 2004-07-09 | 8 | -200/+880 |
| | | | | | | | | | | | | | | data structures that scale better with large character sets, instead of arrays indexed by character value: - Sets of characters to delete/squeeze are stored in a new "cset" structure, which is implemented as a splay tree of extents. This structure has the ability to store character classes (ala wctype(3)), but this is not currently fully utilized. - Mappings between characters are stored in a new "cmap" structure, which is also a splay tree. - The parser no longer builds arrays containing all the characters in a particular class; instead, next() determines them on-the-fly using nextwctype(3). | ||||
* | Mechanically kill hard sentence breaks. | ru | 2004-07-02 | 1 | -1/+1 |
| | |||||
* | Document incorrect handling of multibyte characters in input files | tjr | 2004-06-28 | 1 | -1/+6 |
| | | | | and character string arguments. | ||||
* | Back out [:upper:] and [:lower:] classes sorting, it is not required | ache | 2003-08-05 | 1 | -6/+3 |
| | | | | by POSIX and gains nothing with current code. | ||||
* | Clarify upper/lower conversion description more. | ache | 2003-08-05 | 1 | -7/+4 |
| | |||||
* | Explain better what happens when [:lower:] <-> [:upper:] | ache | 2003-08-05 | 1 | -0/+19 |
| | |||||
* | No functional changes, just code reorganization from prev. commit, it | ache | 2003-08-04 | 2 | -12/+18 |
| | | | | | | makes one malloc unneeded, removes two bzero's and makes code more readable. "Bright ideas comes only _after_ commits." | ||||
* | POSIX require complex processing of 'c-c' ranges: if one of the endpoints | ache | 2003-08-04 | 2 | -22/+41 |
| | | | | | | | is octal sequence, range is taken in the byte values order, for non-octal endpoints range is taken in the sorted collation order. Implement it. | ||||
* | Special fix just for | ache | 2003-08-04 | 1 | -0/+7 |
| | | | | | | | | tr -[cC]s '[:upper:]' '[:lower:]' case (or vice versa): chars taken from s2 can be different this time due to lack of complex upper/lower processing, so fill string2 again to not miss some. | ||||
* | Microoptimization of prev. patch: do strdup() only if (cflag || Cflag) | ache | 2003-08-03 | 1 | -3/+5 |
| | |||||
* | 1) Fix -C - it was broken since introduced, wrong array sorted | ache | 2003-08-03 | 2 | -23/+19 |
| | | | | 2) Fix last (repeated) char after [:class:], it was \0 in original code | ||||
* | Remove charcoll() stabilization added in 1.16, it gains nothing but conflicts | ache | 2003-08-03 | 1 | -5/+1 |
| | | | | with ranges. | ||||
* | POSIX requires 'c-c' must conform collate and be in collation order | ache | 2003-08-03 | 3 | -15/+23 |
| | |||||
* | This patch address two problems. | ache | 2003-08-03 | 3 | -20/+70 |
| | | | | | | | | | | | | | | | | 1st one is relatively minor: according our own manpage, upper and lower classes must be sorted, but currently not. 2nd one is serious: tr '[:lower:]' '[:upper:]' (and vice versa) currently works only if upper and lower classes have exact the same number of elements. When it is not true, like for many ISO8859-x locales which have bigger amount of lowercase letters, tr may do nasty things. See this page http://www.opengroup.org/onlinepubs/007908799/xcu/tr.html for detailed description of desired tr behaviour in such cases. | ||||
* | Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ | schweikh | 2002-12-30 | 1 | -1/+1 |
| | | | | Add FreeBSD Id tag where missing. | ||||
* | mdoc(7) police: markup polishing. | ru | 2002-11-26 | 1 | -7/+5 |
| | | | | Approved by: re | ||||
* | Use .Fl/Ar for flags and arguments. | charnier | 2002-10-17 | 1 | -4/+6 |
| | |||||
* | ANSIify function definitions. | dwmalone | 2002-09-04 | 1 | -10/+3 |
| | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 | ||||
* | When translating and -C is specified, behave as if the complemented set was | tjr | 2002-07-29 | 1 | -0/+26 |
| | | | | in the locale collating order as required by SUSv3. | ||||
* | When translating and the -c option is specified, handle the case where the | tjr | 2002-07-29 | 1 | -6/+11 |
| | | | | | second string argument is more than one character in length in the way required by SUSv3 (and the way GNU textutils and SVR4 do it). | ||||
* | Use err instead of errx when malloc fails. "malloc" is not a helpful | tjr | 2002-07-05 | 1 | -1/+1 |
| | | | | error message. | ||||
* | Improve parsing of character and equivalence classes: | tjr | 2002-06-15 | 1 | -4/+9 |
| | | | | | [:*] and [=*] are parsed as `infinitely many repetitions of :' (or *) instead of literal characters (SUSv3) | ||||
* | Move the #include and #define's to the top of the file. | tjr | 2002-06-14 | 1 | -4/+4 |
| | |||||
* | Bump the size of the equivalence set to NCHARS; this file was left out | tjr | 2002-06-14 | 1 | -1/+1 |
| | | | | of a previous commit implementing equivalence classes. | ||||
* | Sort sections. Avoid using "The -? option" at the start of option descriptions. | tjr | 2002-06-14 | 1 | -11/+7 |
| | |||||
* | Don't treat the trailing ']' of an equivalence class expression as a | tjr | 2002-06-14 | 1 | -1/+2 |
| | | | | | character in the set. tr -d '[=a=]' was deleting ]'s as well as a's. Noticed by the textutils test suite. | ||||
* | Add the P1003.1-2001 -C option which complements the set of characters | tjr | 2002-06-14 | 2 | -29/+58 |
| | | | | (not byte values) specified by the first string argument. | ||||
* | Implement support for equivalence classes ([=e=]) when the mapping is | tjr | 2002-06-14 | 3 | -14/+45 |
| | | | | one-to-one (SUSv3) | ||||
* | remove __P | imp | 2002-03-22 | 3 | -12/+13 |
| | |||||
* | properly handle zero length first string when doing -c | alfred | 2002-03-02 | 1 | -0/+1 |
| | | | | | PR: 34663 MFC After: 3 days | ||||
* | WARNS=2 fixes, use __FBSDID(), kill register keyword. | markm | 2001-12-11 | 2 | -35/+37 |
| | |||||
* | mdoc(7) police: utilize the new .Ex macro. | ru | 2001-08-15 | 1 | -3/+1 |
| | |||||
* | mdoc(7) police: s/BSD/.Bx/ where appropriate. | ru | 2001-08-14 | 1 | -1/+3 |
| | |||||
* | Remove whitespace at EOL. | dd | 2001-07-15 | 1 | -2/+2 |
| | |||||
* | mdoc(7) police: -column lists require column width specifiers. | ru | 2001-07-06 | 1 | -2/+2 |
| | |||||
* | mdoc(7) police: split punctuation characters + misc fixes. | ru | 2001-02-01 | 1 | -1/+1 |
| |