forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathISOToMac.xml
More file actions
70 lines (54 loc) · 2.99 KB
/
Copy pathISOToMac.xml
File metadata and controls
70 lines (54 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<doc>
<legacy_id>1263</legacy_id>
<name>ISOToMac</name>
<type>function</type>
<syntax>
<example>the ISOToMac of<i> ISOString</i></example>
<example>ISOToMac(<i>ISOString</i>)</example>
</syntax>
<synonyms>
</synonyms>
<summary><glossary tag="return">Returns</glossary> the equivalent of a Windows Latin 1 <keyword tag="string">string</keyword>, in the <glossary tag="Mac OS">Mac OS</glossary> <glossary tag="character set">character set</glossary>. </summary>
<examples>
<example>ISOToMac("Ab4+") </example>
<example>ISOToMac(") </example>
<example>charToNum(ISOToMac(numToChar(myASCIIVal))) </example>
</examples>
<history>
<introduced version="1.0">Added. </introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
<category>Text and Data Processing</category>
</classification>
<references>
<function tag="numToChar">numToChar Function</function>
<function tag="uniDecode">uniDecode Function</function>
</references>
<description>
<overview>Use the <b>ISOToMac</b> <control_st tag="function">function</control_st> to translate data that was created on a <glossary tag="Unix">Unix</glossary> or <glossary tag="Windows">Windows system</glossary> to the <glossary tag="Mac OS">Mac OS</glossary> <glossary tag="character set">character set</glossary>.</overview>
<parameters>
<parameter>The <i>ISOString</i> is any string.</parameter>
</parameters>
<value>The <b>ISOToMac</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> the <i>ISOString</i>, with <keyword tag="characters">characters</keyword> whose <glossary tag="ASCII">ASCII value</glossary> is greater than 127 converted to their equivalent in the <glossary tag="Mac OS">Mac OS</glossary> <glossary tag="character set">character set</glossary>. <keyword tag="characters">Characters</keyword> whose <glossary tag="ASCII">ASCII value</glossary> is less than 128 are left unchanged.</value>
<comments><p>LiveCode automatically translates text in fields and scripts, as well as the names of custom properties, into the appropriate character set when you move a stack from one platform to another. It is therefore not necessary to translate them. However, the contents of custom properties, since they may contain binary data, are not translated automatically and must be translated if they contain characters whose ASCII value is 128 or greater.</p><p></p><p>Characters whose ASCII value is less than 128 are the same in the Mac OS character set and ISO 8859-1, so they are not changed by the <b>ISOToMac</b> <control_st tag="function">function</control_st>. These <keyword tag="characters">characters</keyword> include uppercase and lowercase letters, numbers, and most punctuation.</p></comments>
</description>
</doc>