Difference: UnicodeTranscodingFn (7 vs. 8)

Revision 82018-01-02 - JeanNeron

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

ILF Callable Unicode Engine Functions

Line: 33 to 34
  Arguments:
  • string - UTF-32 string, value to measure
Added:
>
>
  • length - length of string (performance enhancement to reduce time to determine string length)
 NOTE: length is returned in --- RETURN CODE, the T/F flag returned by this call is meaningless

Example:

Line: 36 to 38
 NOTE: length is returned in --- RETURN CODE, the T/F flag returned by this call is meaningless

Example:

Added:
>
>
 
      SET     TST WORK UCODE 4096           =     ABC123XYZ
      PASS    TST WORK UCODE 4096           FIELD           SHARE? N

Added:
>
>
PASS --- XI FIELD SHARE? N
  CALL .UC_LEN RESIDENT? N END? N FAIL 0 *
    • --- RETURN CODE is set to 9
Line: 53 to 57
 
  • source - UTF-32 string, string to convert to upper-case
  • locale - RAW string, locale name
  • status - shared uint32, set to ICU error code if conversion fails
Added:
>
>
  • length - length of source string (for performance)
 NOTE: you may safely pass the same field for both target and source.

Example:

Line: 61 to 67
  PASS TST WORK UCODE 32 FIELD SHARE? N PASS en FIELD SHARE? N PASS --- AI FIELD SHARE? Y
Added:
>
>
PASS --- LI FIELD SHARE? N
  CALL .UC_UCASE RESIDENT? N END? N FAIL 0 *
Line: 75 to 82
 
  • target - shared UTF-32 string, lower-case version is written here
  • source - UTF-32 string, string to convert to lower-case
  • locale - RAW string, locale name
Changed:
<
<
  • status - shared uint32, set to ICU error code if conversion fails
>
>
  • status - shared uint32, set to ICU error code if conversion fail
  • length - length of source string (for performance)
 NOTE: you may safely pass the same field for both target and source.

Example:

Line: 84 to 93
  PASS TST WORK UCODE 32 FIELD SHARE? N PASS en FIELD SHARE? N PASS --- AI FIELD SHARE? Y
Added:
>
>
PASS --- LI FIELD SHARE? N
  CALL .UC_LCASE RESIDENT? N END? N FAIL 0 *
    • WORK UCODE 4096 contains abc123xyzmnop
Line: 99 to 109
 
  • source - UTF-32 string, string to convert to title-case
  • locale - RAW string, locale name
  • status - shared uint32, set to ICU error code if conversion fails
Added:
>
>
  • length - length of source string (for performance)
 NOTE: you may safely pass the same field for both target and source,

Example:

Line: 107 to 119
  PASS TST WORK UCODE 32 FIELD SHARE? N PASS en FIELD SHARE? N PASS --- AI FIELD SHARE? Y
Changed:
<
<
CALL .UC_LCASE RESIDENT? N END? N FAIL 0
>
>
PASS --- LI FIELD SHARE? N CALL .UC_TCASE RESIDENT? N END? N FAIL 0
  *
    • WORK UCODE 4096 contains This Is A Test *
 
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