Typedef | ||
---|---|---|
ASHostEncoding (Macintosh, Windows) An integer specifying the host encoding for text. On Mac OS, it is a script code. On Windows, it is a CHARSET id. In UNIX, Acrobat currently only supports English, so the only valid ASHostEncoding is 0 (Roman). See ASScript.
|
||
ASHostEncoding (UNIX) An integer specifying the host encoding for text. On Mac OS, it is a script code. On Windows, it is a CHARSET id. In UNIX, Acrobat currently only supports English, so the only valid ASHostEncoding is 0 (Roman). See ASScript.
|
Enumeration | ||
---|---|---|
ASScript
An enumeration of writing scripts. Not all of these scripts are supported on all platforms.
|
Method | ||
---|---|---|
Determines whether the given byte is a lead byte of a multi-byte character, and how many tail bytes follow.
|
||
Tests whether the bytes in the string conform to the Unicode UTF-8 encoding form. The method does not test whether the string is NULL-terminated.
|
||
ASScript ASScriptFromHostEncoding(ASHostEncoding osScript)
Converts from a host encoding type to an ASScript value. On Windows, the host encoding is a CHARSET id. On Mac OS, the host encoding is a script code.
|
||
ASHostEncoding ASScriptToHostEncoding(ASScript asScript)
Converts from an ASScript code to a host encoding type. On Windows, the host encoding is a CHARSET id. On Mac OS, the host encoding is a script code.
|
ASHostEncoding |
Product availability: Acrobat, Reader, PDFL |
Platform availability: Macintosh, Windows |
typedef ASInt32 ASHostEncoding;
An integer specifying the host encoding for text. On Mac OS, it is a script code. On Windows, it is a CHARSET id
. In UNIX, Acrobat currently only supports English, so the only valid ASHostEncoding is 0
(Roman). See ASScript.
File: ASExpT.h |
Line: 3872 |
ASHostEncoding |
Product availability: Acrobat, Reader, PDFL |
Platform availability: UNIX |
typedef struct _t_ASHostEncoding* ASHostEncoding;
An integer specifying the host encoding for text. On Mac OS, it is a script code. On Windows, it is a CHARSET id
. In UNIX, Acrobat currently only supports English, so the only valid ASHostEncoding is 0
(Roman). See ASScript.
File: ASExpT.h |
Line: 3870 |
ASScript |
Product availability: All |
Platform availability: All |
enum ASScript {
File: ASExpT.h |
Line: 3902 |
ASHostMBLen | () |
Product availability: All |
Platform availability: All |
ASInt32 ASHostMBLen(ASHostEncoding encoding, ASUns8 byte)
Determines whether the given byte is a lead byte of a multi-byte character, and how many tail bytes follow.
When parsing a string in a host encoding, you must keep in mind that the string could be in a variable length multi-byte encoding. In such an encoding (for example, Shift-JIS) the number of bytes required to represent a character varies on a character-by-character basis. To parse such a string you must start at the beginning and, for each byte, determine whether that byte represents a character or is the first byte of a multi-byte character. If the byte is a lead byte for a multi-byte character, you must also compute how many bytes will follow the lead byte to make up the entire character. Currently the API provides a call (PDHostMBLen()) that performs these computations, but only if the encoding in question is the operating system encoding (as returned by PDGetHostEncoding()). ASHostMBLen() allows you to determine this for any byte in any host encoding.
Parameters
encoding — | ||
byte — | The first byte of a multi-byte character. |
The number of additional bytes required to form the character. For example, if the encoding is a double-byte encoding, the return value will be |
See Also
Since
File: ASProcs.h |
Line: 2019 |
ASIsValidUTF8 | () |
Product availability: All |
Platform availability: All |
Tests whether the bytes in the string conform to the Unicode UTF-8 encoding form. The method does not test whether the string is NULL
-terminated.
Parameters
cIn — | The string. |
|
cInLen — | The length of the string in bytes, not including the |
|
Since
File: ASExtraProcs.h |
Line: 2330 |
ASScriptFromHostEncoding | () |
Product availability: All |
Platform availability: All |
ASScript ASScriptFromHostEncoding(ASHostEncoding osScript)
Converts from a host encoding type to an ASScript value. On Windows, the host encoding is a CHARSET id
. On Mac OS, the host encoding is a script code.
Parameters
osScript — |
See Also
Since
File: ASExtraProcs.h |
Line: 57 |
ASScriptToHostEncoding | () |
Product availability: All |
Platform availability: All |
ASHostEncoding ASScriptToHostEncoding(ASScript asScript)
Converts from an ASScript code to a host encoding type. On Windows, the host encoding is a CHARSET id
. On Mac OS, the host encoding is a script code.
Parameters
asScript — | The script value. |
See Also
Since
File: ASExtraProcs.h |
Line: 46 |