George Rhoten
c85207afbd
ICU-1887 Try to fix the name mangling problems with the Intel compiler by including utypes.h before the system headers.
...
X-SVN-Rev: 9124
2002-07-12 21:42:24 +00:00
Steven R. Loomis
2def9432c3
ICU-1868 AS/400 changes (allow uconv to be built as static, dll, or common)
...
X-SVN-Rev: 8808
2002-06-07 17:08:34 +00:00
George Rhoten
eed554706d
ICU-900 Fixed some compiler warnings.
...
X-SVN-Rev: 8706
2002-05-24 23:30:25 +00:00
George Rhoten
08df62745a
ICU-900 Fixed some compiler warnings.
...
X-SVN-Rev: 8681
2002-05-23 22:10:23 +00:00
George Rhoten
e8cf181469
ICU-1828 Remove tabs
...
X-SVN-Rev: 8328
2002-04-02 01:17:28 +00:00
Yves Arrouye
845fdd8f38
ICU-1220 private string functions
...
X-SVN-Rev: 8204
2002-03-22 09:51:02 +00:00
Yves Arrouye
5db948db4a
ICU-1220 better pname
...
X-SVN-Rev: 8203
2002-03-22 09:50:02 +00:00
Yves Arrouye
d2de27a433
ICU-1220 because of transliteration, be paranoid about offsets!
...
X-SVN-Rev: 8141
2002-03-20 02:11:50 +00:00
Yves Arrouye
e6c9e3bea5
ICU-1220 change u_wmsg(); consistently use it in uconv.
...
X-SVN-Rev: 8113
2002-03-19 17:14:10 +00:00
Yves Arrouye
564f1a1904
ICU-1220 case-insensitive compare of callabck names.
...
X-SVN-Rev: 8087
2002-03-18 17:12:52 +00:00
Steven R. Loomis
cf07b86764
ICU-1568 static mode update
...
X-SVN-Rev: 8040
2002-03-15 02:02:57 +00:00
Yves Arrouye
a5f2175b26
ICU-1220 usage() if no arg to -f or -t.
...
X-SVN-Rev: 7873
2002-03-03 07:06:27 +00:00
Steven R. Loomis
c0fd3f923e
ICU-1568 use static mode for uconv by default
...
X-SVN-Rev: 7848
2002-03-01 22:44:21 +00:00
Yves Arrouye
15b324d1f7
ICU-1220 switch to error reporting as offsets in the output when
...
getting weird offsets.
Flush what can be saved when there is an error so that the output is only
truncated where the error occured.
X-SVN-Rev: 7760
2002-02-25 06:24:08 +00:00
George Rhoten
dccc8aeafd
ICU-900 Fixed some compiler warnings.
...
X-SVN-Rev: 7714
2002-02-20 00:22:12 +00:00
Yves Arrouye
40295b3306
ICU-1220 Fixed calculation of error positions when a transliterator
...
is used.
Added an EXAMPLES section to show non-trivial uses of uconv.
X-SVN-Rev: 7695
2002-02-16 22:07:19 +00:00
Yves Arrouye
6f2c114b83
ICU-1220 allows - for -f and -t (same as not giving them).
...
more documentation.
changed some error messages.
X-SVN-Rev: 7694
2002-02-16 18:45:11 +00:00
Yves Arrouye
0c98108e83
ICU-1220 make the -f and -t arguments optional,
...
and use the default encoding if they're not specified (I am split
on this between the default encoding and UTF-8). This allows one
to quickly use transliterators without having to pass these options.
X-SVN-Rev: 7693
2002-02-16 09:15:06 +00:00
Yves Arrouye
3aa83e6566
ICU-1220 error reporting for rules parsing errors.
...
X-SVN-Rev: 7690
2002-02-16 08:47:31 +00:00
Yves Arrouye
161c2863a7
ICU-1220 support IDs and compound IDs, but also complex rules in the -x
...
argument.
X-SVN-Rev: 7688
2002-02-16 07:43:26 +00:00
Yves Arrouye
de48cf6149
ICU-1220 use inline and not U_INLINE in C++.
...
X-SVN-Rev: 7555
2002-02-01 23:45:32 +00:00
Yves Arrouye
0a2d80ea82
ICU-1220 make escape-xml the same as escape-xml-hex by default instead
...
of escape-xml-dec.
X-SVN-Rev: 7551
2002-02-01 07:39:57 +00:00
Yves Arrouye
f56fb8ddba
ICU-1680 Fix crash with transliterators that were exceeding the
...
buffer size.
Also, improve speed a bit.
Finally, add a -b, --block-size size option, which not only is useful
for Real People(tm) wanting a bigger buffer size, but also great for
testing that everything runs smoothly by using -b 1 for example.
X-SVN-Rev: 7548
2002-01-31 22:44:42 +00:00
Yves Arrouye
deb6585652
ICU-1605 for UCNV_ESCAPE_UNICODE, print the codepoint, not the pair of
...
code units. Also, delimit the U+XXXX with curly braces for now.
X-SVN-Rev: 7514
2002-01-28 18:47:35 +00:00
Yves Arrouye
08c640b756
ICU-1220 of course, I had to compute the offset wrongly when there is
...
no error :-(
X-SVN-Rev: 7422
2002-01-09 20:44:51 +00:00
Yves Arrouye
ca88544452
ICU-1220 Report position at which errors occur.
...
Fix memory dumps in messages by explicetly adding U+0000 at the end of the
strings that we getBuffer() to u_wmsg().
Add --fallback and --no-fallback options to control use of fallback.
X-SVN-Rev: 7421
2002-01-09 20:42:19 +00:00
Yves Arrouye
12be335ada
ICU-1220 many files can now be transcoded at the same time. I was
...
tempted to let one do uconv -t utf-8 -f latin1 file1 -f euc-jp file2 so
that many files of various encodings could be converted at the same time
to a single encoding, but will do that later after cleaning up the sloppy
way I enabled multiple files for today.
X-SVN-Rev: 7416
2002-01-09 01:31:14 +00:00
Yves Arrouye
3b470abbe3
ICU-1220 Added escape-codepoint as a callback to let people use the
...
new UCNV_ESCAPE_CODEPOINT.
Options compatibility with iconv(1): added -V, --version; -s, --silent;
--verbose (and -v because of ICU commands); -o, --output file. uconv(1) is
now mostly compatible with iconv(1) usage, except for the fact that one
cannot convert many files in one run yet.
X-SVN-Rev: 7414
2002-01-09 01:04:32 +00:00
Yves Arrouye
72a06de4e9
ICU-1220 oops. use UCNV_ESCAPE_XML_HEX for escape-xml-hex!
...
X-SVN-Rev: 7407
2002-01-08 03:23:53 +00:00
Yves Arrouye
23956f9d2d
ICU-1220 uconv now supports setting callbacks in both directions; see
...
the manual page, or call uconv -h to have a list (though the manual
page also has explanations for the different callbacks).
X-SVN-Rev: 7404
2002-01-08 02:35:07 +00:00
Yves Arrouye
c62d7f20bb
ICU-1220 uconv now supports setting callbacks in both directions; see
...
the manual page, or call uconv -h to have a list (though the manual
page also has explanations for the different callbacks).
X-SVN-Rev: 7403
2002-01-08 02:34:33 +00:00
Yves Arrouye
4004c78ee9
ICU-1220 added iconv-compatibility option -c, and added -i for input
...
X-SVN-Rev: 7399
2002-01-07 21:34:41 +00:00
Yves Arrouye
b2b5b7ff96
ICU-1220 if --canon is used with -L, --list-transliterators, print only
...
one name per line (makes grepping very easy).
Ensure that we can handle transliterators names of arbitrary length (as
big as memory will allow).
X-SVN-Rev: 7398
2002-01-07 21:05:30 +00:00
Yves Arrouye
691fa3912c
ICU-1220 implemented -L, --list-transliterators.
...
made the -x transliterator option work.
updated manual page and resource bundle to reflect that.
X-SVN-Rev: 7396
2002-01-07 20:45:00 +00:00
Yves Arrouye
cccb02263f
ICU-1104 display an error if the encoding passed to --list-code results
...
in a null first alias (err is not set)
X-SVN-Rev: 7387
2002-01-05 01:20:45 +00:00
Yves Arrouye
ef243d3b7d
ICU-1104 add a --list-code code option to generalize the --default-code
...
one. A good use of this option is to know if a given name is valid, by
calling 'uconv --list-code name 2>/dev/null' and checking for the exit
code. Maybe a -q option is in order to make that easier.
X-SVN-Rev: 7386
2002-01-05 01:08:01 +00:00
Yves Arrouye
c05e8166f7
ICU-1104 add a --default-code option.
...
X-SVN-Rev: 7384
2002-01-05 00:42:05 +00:00
Yves Arrouye
35293cdf9c
ICU-1104 add a --default-code option.
...
X-SVN-Rev: 7383
2002-01-05 00:28:34 +00:00
Yves Arrouye
d7c3f90b00
ICU-1200 do not use the soon to be deprecated UnicodeConverter.
...
X-SVN-Rev: 7355
2001-12-20 00:50:00 +00:00
Yves Arrouye
3f3d69a692
ICU-1220 implementation of -c option.
...
X-SVN-Rev: 6821
2001-11-13 07:22:18 +00:00
Yves Arrouye
aecb038cf5
ICU-1220 renamed option -c to be used together with -l.
...
always print aliases names
X-SVN-Rev: 6746
2001-11-10 07:01:29 +00:00
Yves Arrouye
78f86d2bfd
ICU-1220 added a --list-converters option.
...
X-SVN-Rev: 6743
2001-11-10 06:52:25 +00:00
Yves Arrouye
52affd22d1
ICU-1220 terse printing with -l. We'll have a --list-converters that
...
will dump the converters and their alias as if it were a brand
new convrtrs.txt
X-SVN-Rev: 6739
2001-11-10 06:14:23 +00:00
Yves Arrouye
a150871504
ICU-1220 add -? for compatibility with other tools
...
X-SVN-Rev: 6737
2001-11-10 06:00:26 +00:00
Yves Arrouye
51c6835601
ICU-1220 call initMsg() before printing error msg.
...
X-SVN-Rev: 6724
2001-11-10 01:53:45 +00:00
Yves Arrouye
b5aae87f9e
ICU-1220 Better help format. Removed releaseBuffer() calls.
...
X-SVN-Rev: 5860
2001-09-21 00:30:25 +00:00
Ram Viswanadha
181af9fca8
ICU-1220 Fix getUChars() compilation problem
...
X-SVN-Rev: 5837
2001-09-20 19:43:25 +00:00
Yves Arrouye
93c74c852b
ICU-1220 Added uconv as an extra (Unix only for now).
...
X-SVN-Rev: 5825
2001-09-19 23:43:16 +00:00