Difference: UnicodeTranscodingFn (4 vs. 5)

Revision 52015-01-22 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="UnicodeTranscodingFn"

ILF Callable Unicode Engine Functions

Line: 124 to 129
 
  • action - RAW string, action to take on conversion error (see below)
  • option - UTF32-string, escape type or substitution string (see below)
  • status - shared uint32, set to ICU error code if conversion fails
Added:
>
>
  • length - shared uint32, returns the length of the target field.
 You can use "action" to control the behavior of this function if a conversion error occurs (in this function, an error occurs when a UTF-32 character cannot be transcoded into the specified encoding). "action" can be one of the following:
  • STOP - conversion stops on first error
  • SKIP - conversion skip offending character
Line: 133 to 139
 
    • STYLE - specifies CSS2 escaping (\XXXXXX )
    • JAVA - specifies Java escaping (\uXXXX)
    • UNICODE - specifies Unicode escaping (U+XXXXX)
Changed:
<
<
    • DECIMAL - specifies XML decimal escaping (&#DDDD;)
    • X - specifies XML hex escaping (&#xXXXX;)
>
>
    • DECIMAL - specifies XML decimal escaping ()
    • X - specifies XML hex escaping ()
 Example:
Added:
>
>
 
      SET     TST WORK UCODE 32             =     This is a test
      *
      PASS    --- TEMP 32                   FIELD           SHARE? Y

Line: 144 to 151
  PASS ESCAPE FIELD SHARE? N PASS C FIELD SHARE? N PASS --- SI FIELD SHARE? Y
Added:
>
>
PASS --- LI FIELD SHARE? Y
  CALL .UC_FROM_UCODE RESIDENT? N END? N FAIL 0 *
    • --- TEMP 32 contains "This is a test" in UTF-8 encoding
Line: 162 to 170
 
  • action - RAW string, action to take on conversion error (see below)
  • option - UTF32-string, escape type or substitution string (see below)
  • status - shared uint32, set to ICU error code if conversion fails
Added:
>
>
  • length - shared uint32, returns the length of the target field.
 You can use "action" to control the behavior of this function if a conversion error occurs (in this function, an error occurs when a codepage character cannot be transcoded into UTF-32). "action" can be one of the following:
  • STOP - conversion stops on first error
  • SKIP - conversion skip offending character
Line: 171 to 180
 
    • STYLE - specifies CSS2 escaping (\XXXXXX )
    • JAVA - specifies Java escaping (\uXXXX)
    • UNICODE - specifies Unicode escaping (U+XXXXX)
Changed:
<
<
    • DECIMAL - specifies XML decimal escaping (&#DDDD;)
    • X - specifies XML hex escaping (&#xXXXX;)
>
>
    • DECIMAL - specifies XML decimal escaping ()
    • X - specifies XML hex escaping ()
 Example:
Added:
>
>
 
      PASS    TST WORK UCODE 4096           FIELD           SHARE? Y
      PASS    --- TEMP 32K                  FIELD           SHARE? Y
      PASS        UTF-16LE                  FIELD           SHARE? N

Line: 180 to 190
  PASS ESCAPE FIELD SHARE? N PASS DECIMAL FIELD SHARE? N PASS --- SI FIELD SHARE? Y
Added:
>
>
PASS --- LI FIELD SHARE? Y
  CALL .UC_TO_UCODE RESIDENT? N END? N FAIL 0 *
    • WORK UCODE 4096 contains UTF-32 version of --- TEMP 32K
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback