diff options
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r-- | coreutils/tr.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c index 6d4cb4a14..f3db3793f 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -18,6 +18,35 @@ | |||
18 | /* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html | 18 | /* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html |
19 | * TODO: graph, print | 19 | * TODO: graph, print |
20 | */ | 20 | */ |
21 | |||
22 | //kbuild:lib-$(CONFIG_TR) += tr.o | ||
23 | |||
24 | //config:config TR | ||
25 | //config: bool "tr" | ||
26 | //config: default y | ||
27 | //config: help | ||
28 | //config: tr is used to squeeze, and/or delete characters from standard | ||
29 | //config: input, writing to standard output. | ||
30 | //config: | ||
31 | //config:config FEATURE_TR_CLASSES | ||
32 | //config: bool "Enable character classes (such as [:upper:])" | ||
33 | //config: default y | ||
34 | //config: depends on TR | ||
35 | //config: help | ||
36 | //config: Enable character classes, enabling commands such as: | ||
37 | //config: tr [:upper:] [:lower:] to convert input into lowercase. | ||
38 | //config: | ||
39 | //config:config FEATURE_TR_EQUIV | ||
40 | //config: bool "Enable equivalence classes" | ||
41 | //config: default y | ||
42 | //config: depends on TR | ||
43 | //config: help | ||
44 | //config: Enable equivalence classes, which essentially add the enclosed | ||
45 | //config: character to the current set. For instance, tr [=a=] xyz would | ||
46 | //config: replace all instances of 'a' with 'xyz'. This option is mainly | ||
47 | //config: useful for cases when no other way of expressing a character | ||
48 | //config: is possible. | ||
49 | |||
21 | #include "libbb.h" | 50 | #include "libbb.h" |
22 | 51 | ||
23 | enum { | 52 | enum { |