UnicodeWith (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 25: Line 25:
The following is a simple <var>UnicodeWith</var> call:
The following is a simple <var>UnicodeWith</var> call:
The [[U (String function)|U constant function]] is used in the example.
The [[U (String function)|U constant function]] is used in the example.
<pre>
<p class="code">Begin
    Begin
  %u is unicode Initial('This is an at sign: ')
      %u is unicode Initial('This is an at sign: ')
  Print %u:unicodeWith('&amp;#x40;':U)
      Print %u:unicodeWith('&amp;#x40;':U)
End
    End
</p>
</pre>


The result is:
The result is:
<pre>
<p class="output">This is an at sign: @
    This is an at sign: @
</p>
</pre>

Revision as of 15:53, 20 January 2011

Concatenate this Unicode string with another (Unicode class)

This function returns the Unicode string that is the concatenation of the method object Unicode string and its Unicode string argument.

The UnicodeWith function is available as of version 7.6 of the Sirius Mods.

Syntax

%outUnicode = unicode:UnicodeWith( unicode2)

Syntax terms

%outUni A Unicode variable to receive the result of the UnicodeWith method.
unicode A Unicode string.
unistring A Unicode string.

Example

The following is a simple UnicodeWith call: The U constant function is used in the example.

Begin %u is unicode Initial('This is an at sign: ') Print %u:unicodeWith('&#x40;':U) End

The result is:

This is an at sign: @