|
ARCAD-Transformer For UnicodeQuite often, software is originally designed to be used in a limited geographical field. However, as the activity changes, software may need to be made usable worldwide. This leads to the problem of different sets of characters. This problem is even more glaring when the languages are Far Eastern languages that use DBCS (Japan, Korea, Taiwan, China). It can be tempting to choose the most minimal option in order to provide a limited solution to this problem. Yet this requires making code more complex in certain places, without providing an overall solution to this issue. THE SOLUTION The Unicode approach is entirely different. A choice is made once and for all to integrate all of these language constraints into the software by:
But the EBCDIC (SBCS/DBCS) must be conserved when necessary, as certain functionalities don’t support Unicode, or support it badly:
These limits are the stumbling blocks of the “All Unicode” solution, as they require managing despite these many conversions, by polluting the source code kept in place. Note: It is sometimes necessary to enlarge certain fields if we want DCBS characters to be accepted in them (minimum length = 4). THE ARCAD FOR UNICODE SOLUTION This is why the ARCAD for Unicode method was designed to take these various points into account, with the objective of:
There are two steps in the solution: 1/ARCAD-Transformer for Unicode. This involves a one-shot transformation of the application components into Unicode via ARCAD-Transformer:
2/ ARCAD Pre-compiler for Unicode: With the aim of NOT MAKING THE SOURCE CODE RETAINED MORE COMPLEX, this code – modified during the transition to Unicode, has no more lines than the old source code and the conversions to SBCS fields that are necessary for certain functionalities do not appear in it. Therefore, compilation of this source code (for example: RPGLE type) goes through the ARCAD Pre-compiler for Unicode, which is in charge of:
A second piece of source code is thus generated (e.g., RPGLE2 type) and it is this code that is actually compiled. If you develop via the LPEZ publisher in R.D.P., pre-compilation errors (ARCAD) or compilation errors (IBM) are brought up to the level of the corresponding line within the source code that is kept. ARCAD-Skipper ensures coherence management of these two kinds of source code, to which only one object corresponds. You modify only the source code maintained; the source code generated is retained and regenerated as many times as you like. It should be noted that an ARCAD snap-in to the IBM Debugger allows you to view/modify CLP fields as if they were Unicode type. Various approaches The Unicode conversion can concern all of the fields of all files (and processing). The solution also lets you be more selective, only allowing Unicode for certain application entities. In this case, you can use another ARCAD-Transformer functionality to perform a guided renaming of the fields of:
The standardized fields can intrinsically contain the management rule concerning whether they can support Unicode or not. |




























































