PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
| $$C2X |
This is a transformation that can be applied to the substitution of content for both macros and macro parameters.
This can be used as an easy way to create a simple case specific identifier for a value ("AB" would be converted to "4142").
In this "test" example we want to handle the parameter in a case dependant way:
#(
#define DefineIT
#define XXXX.{$#1 $$c2x} Something
#)
#(
#define TestIT
#ifdef XXXX.{$#1 $$c2x}
#info "{$#1} - DEFINED - C2x={$#1 $$c2x}"
#elseif
#info "{$#1} - not DEFINED - C2x={$#1 $$c2x}"
#endif
#)
-----------------------------
<$DefineIt "AbCd">
<$TestIt "aBcD">
<$TestIt "AbCd">
<$TestIt "abcd">
<$TestIt "ABCD">