Difference: 0LASubrTextFromUnicode (2 vs. 3)

Revision 32018-01-04 - JeanNeron

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

.TEXT FROM UNICODE

This subroutine transcodes a Unicode alpha field into a RAW alpha field. Added in 6.0.0

Changed:
<
<

>
>

 

Usage

      PASS         <raw>                      FIELD            SHARE? Y
      PASS         <unicode_source>           FIELD            SHARE? N

Line: 45 to 45
 Given a Unicode string containing 'aɏb', here are the results with various options (the ɏ character does not exist in the ISO-8859-15 encoding).
Option Result
SKIP 'ab'
Changed:
<
<
STOP Nothing is returned in <raw>. The field .TEXT FROM UNICODE contains ".UC_FROM_UCODE Fail" and <error> contains "U_INVALID_CHAR_FOUND"
>
>
STOP 'a'. The field .TEXT FROM UNICODE contains ".UC_FROM_UCODE Fail" and <error> contains "U_INVALID_CHAR_FOUND"
 
SUBS 'a*b', assuming '*' was passed in <option> field as a substitute character.
ESCAPE 'a\u024Fb' if C is PASSed as <option>
ESCAPE 'a\24F b' if STYLE is PASSed as <option>
ESCAPE 'a\u024Fb' if JAVA is PASSed as <option>
ESCAPE 'a{U+024F}b' if UNICODE is PASSed as <option>
Changed:
<
<
ESCAPE 'a&#591;b' if DECIMAL is PASSed as <option>
ESCAPE 'a&#x24F;b' if X is PASSed as <option>
>
>
ESCAPE 'aɏb' if DECIMAL is PASSed as <option>
ESCAPE 'aɏb' if X is PASSed as <option>
 

Comments

Changed:
<
<

<--/commentPlugin-->
>
>

<--/commentPlugin-->
 
Deleted:
<
<
-- Jean Neron - 2017-11-02
 \ No newline at end of file
Added:
>
>
-- Jean Neron - 2017-11-02
 \ No newline at end of file
 
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