Difference: 0LASubrTextGetUniname (1 vs. 2)

Revision 22018-01-04 - JeanNeron

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

.TEXT GET UNINAME

Line: 6 to 6
 

Usage

Changed:
<
<
      PASS         <unicode_name>             FIELD            SHARE? N

>
>
      PASS         <unicode_name>             FIELD            SHARE? Y

  PASS <unicode_string> FIELD SHARE? N GOSUB --- .TEXT GET UNINAME
    • Check for errors

Revision 12017-11-02 - JeanNeron

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

.TEXT GET UNINAME

This subroutine returns the name of the specified Unicode character. Added in 6.0.0


Usage

      PASS         <unicode_name>             FIELD            SHARE? N
      PASS         <unicode_string>           FIELD            SHARE? N
      GOSUB    --- .TEXT GET UNINAME
      *        Check for errors
      IF       --- .TEXT GET UNINAME          NE

Description

This subroutine returns the name of the specified Unicode character. All parameters are required. If any required parameters are missing, the subroutine will CANCEL.

<unicode_name> returns the name of the Unicode character PASSed in <unicode_string> (Required). This must be PASSed with Share "Y" to return the value.

<unicode_string> is the Unicode character or string whose name will be returned (Required). Only the first character of the string is checked.

This is the opposite of .TEXT SET UNINAME.

Note: Unicode character names can be quite long (i.e., LATIN SMALL LETTER Y WITH STROKE), make sure your <unicode_name> field is large enough.

Comments

<--/commentPlugin-->

-- Jean Neron - 2017-11-02

 
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