NewFromAsciiCodepage (CharacterToUnicodeMap function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
{{Template:CharacterToUnicodeMap:NewFromAsciiCodepage subtitle}}
{{Template:CharacterToUnicodeMap:NewFromAsciiCodepage subtitle}}


This page is [[under construction]].
This method lets you dynamically select a particular codepage for specific data needs without 
having to change your system-wide codepage.  
 
==Syntax==
==Syntax==
{{Template:CharacterToUnicodeMap:NewFromAsciiCodepage syntax}}
{{Template:CharacterToUnicodeMap:NewFromAsciiCodepage syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%outCharacterToUnicodeMap</th><td><var>CharacterToUnicodeMap</var> object</td></tr>
<tr><th>%CharacterToUnicodeMap</th><td><var>A CharacterToUnicodeMap</var> object.</td></tr>
<tr><th nowrap="true"><var>[%(CharacterToUnicodeMap):]</var></th>
<tr><th nowrap="true"><var>[%(CharacterToUnicodeMap):]</var></th>
<td>The optional class name in parentheses denotes a [[Notation conventions for methods#Constructors|virtual constructor]]. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a virtual constructor.</td></tr>
<td>The optional class name in parentheses denotes a [[Notation conventions for methods#Constructors|virtual constructor]]. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a virtual constructor.</td></tr>
<tr><th>codepageName</th>
<tr><th>codepageName</th>
<td>string</td></tr>
<td>A string that identifies one of the currently supported codepages at your site. You can view (and manage) these codepages with the <var>[[Unicode#The UNICODE command|UNICODE]]</var> command. </td></tr>
</table>
</table>
==Usage notes==
==Usage notes==
<ul>
<li><var>NewFromAsciiCodepage</var> is a [[Object variables#Virtual Constructor methods|virtual constructor]] and as such can be called with no method object, with an explicit class name, or with an object variable, even if that object is null:
<p class="code">%charToUmap = newFromAsciiCodepage('1252')
%charToUmap = %(CharacterToUnicodeMap):newFromAsciiCodepage('1252')
%charToUmap = %charToUmap:newFromAsciiCodepage('1252')
</p>
</ul>
==Examples==
==Examples==
==See also==
==See also==
{{Template:CharacterToUnicodeMap:NewFromAsciiCodepage footer}}
{{Template:CharacterToUnicodeMap:NewFromAsciiCodepage footer}}

Revision as of 23:08, 30 November 2011

Create CharacterToUnicodeMap object from ASCII codepage (CharacterToUnicodeMap class)

[Introduced in Sirius Mods 8.0]


This method lets you dynamically select a particular codepage for specific data needs without having to change your system-wide codepage.

Syntax

%characterToUnicodeMap = [%(CharacterToUnicodeMap):]NewFromAsciiCodepage( codepageName)

Syntax terms

%CharacterToUnicodeMapA CharacterToUnicodeMap object.
[%(CharacterToUnicodeMap):] The optional class name in parentheses denotes a virtual constructor. See "Usage notes", below, for more information about invoking a virtual constructor.
codepageName A string that identifies one of the currently supported codepages at your site. You can view (and manage) these codepages with the UNICODE command.

Usage notes

  • NewFromAsciiCodepage is a virtual constructor and as such can be called with no method object, with an explicit class name, or with an object variable, even if that object is null:

    %charToUmap = newFromAsciiCodepage('1252') %charToUmap = %(CharacterToUnicodeMap):newFromAsciiCodepage('1252') %charToUmap = %charToUmap:newFromAsciiCodepage('1252')

Examples

See also