UnicodeWith (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (syntax terms, tags and links)
Line 1: Line 1:
{{Template:Unicode:UnicodeWith subtitle}}
{{Template:Unicode:UnicodeWith subtitle}}
<var>UnicodeWith</var> returns the <var>Unicode</var> string that is the concatenation of the method object <var>Unicode</var> string and its <var>Unicode</var> string argument.


This function returns the <var>Unicode</var> string that is the concatenation of
the method object <var>Unicode</var> string and its <var>Unicode</var> string argument.
The <var>UnicodeWith</var> function is available as of version 7.6  of the <var class=product>Sirius Mods</var>.
==Syntax==
==Syntax==
{{Template:Unicode:UnicodeWith syntax}}
{{Template:Unicode:UnicodeWith syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%outUni</th>
<tr><th>%outUnicode</th>
<td>A <var>Unicode</var> variable to receive the result of the <var>UnicodeWith</var> method. </td></tr>
<td>A <var>Unicode</var> variable to receive the result of the <var>UnicodeWith</var> method. </td></tr>
<tr><th>unicode</th>
<tr><th>unicode</th>
<td>A <var>Unicode</var> string. </td></tr>
<td>A <var>Unicode</var> string. </td></tr>
<tr><th>unistring</th>
<tr><th>unicode</th>
<td>A <var>Unicode</var> string.</td></tr>
<td>A <var>Unicode</var> string.</td></tr>
</table>
</table>
==Usage Notes==
<ul><li><var>UnicodeWith</var> is available as of <var class="product">[[Sirius Mods|"Sirius Mods"]]</var> Version 7.6.</ul>
===Example===
===Example===
 
<ol><li>The following is a simple <var>UnicodeWith</var> call:
The following is a simple <var>UnicodeWith</var> call:
<p class="code">begin
The [[U (String function)|U constant function]] is used in the example.
  %u is unicode initial('This is an at sign: ')
<p class="code">Begin
  print %u:unicodeWith('&amp;#x40;':[[U (String function)|U]])
%u is unicode Initial('This is an at sign: ')
end
Print %u:unicodeWith('&amp;#x40;':U)
End
</p>
</p>
The result is:
The result is:
<p class="output">This is an at sign: @
<p class="output">This is an at sign: @
</p>
</p></ol>
 
==See also==
==See also==
{{Template:Unicode:UnicodeWith footer}}
{{Template:Unicode:UnicodeWith footer}}

Revision as of 06:08, 25 February 2011

Concatenate this Unicode string with another (Unicode class)

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

Syntax

%outUnicode = unicode:UnicodeWith( unicode2)

Syntax terms

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

Usage Notes

Example

  1. The following is a simple UnicodeWith call:

    begin %u is unicode initial('This is an at sign: ') print %u:unicodeWith('&#x40;':U) end

    The result is:

    This is an at sign: @

See also