
572
|
Chapter 9: Information Processing Techniques
Most of the algorithms and techniques provided in this chapter make use of the Java APIs,
which provides programmers with exceptional internationalization support. Providing C
or C++ examples that make use of the locale model or multiple-byte and wide character
data structures is not very useful because many compilers still do not support them (en-
suring nonportability from day one). Programmers who use C or C++ generally resort to
writing their own input and output mechanisms for handling issues such as representing
two or more bytes as a single character. If you are a programmer, I encourage you to ex-
plore the Java programming language.
C/C++
Most CJKV-capable programs today are still written in C or C++. e wide availability of
C/C++ compilers has made this possible, along with the still-stellar performance of the
executables that result. However, because of the weak or nonexistent support for interna-
tionalization in such compilers, C/C++ may no longer the best choice for some purposes
and applications.
It is important to understand, or at least appreciate, the programming paradigms and
structures oered by C/C++ because they have been instrumental in forming the founda-
tions for the seemingly more contemporary programming languages, covered next. Many
of their programming constructs, such as conditional statements and lo ...