Return Type |
Signature |
Copy() |
|
GetContent( |
|
GetDate() |
|
GetHash() |
|
GetID() |
|
GetSize() |
|
SetContent( |
|
Split() |
boolean Compare(
content content)
Name |
Description |
content |
The other content.
|
content Copy()
string GetContent(
transaction transaction,
integer flags,
integer codepage)
Name |
Description |
transaction |
The transaction to be used (e.g.
cootx for the current one). |
flags |
COOGC_MULTIBYTEFILE ... The content is stored using a 8-bit encoding specified by the code page.COOGC_UNICODEFILE ... The content is stored using UTF-16 little endian without byte order mark.COOGC_BASE64 ... The binary content is returned as Base64 encoded string.COOGC_BASE16 ... The binary content is returned as Base16 encoded string.COOGC_DETECTENCODING .. The content encoding is detected by the byte order mark
(supported are UTF-8, UTF-16 big and little endian), if present, otherwise it is assumed to be UTF-8,
if decoding is successful, if not it is treated as ANSI codepage 1252 (Latin 1/Western Europe).
|
codepage |
The source codepage of the content.
COOGC_ACP ... The content is stored using the ANSI codepage 1252 (Latin 1/Western Europe), except if a UTF-8 byte order mark is present.COOGC_UTF7 ... The content is stored using UTF-7 encoding.COOGC_UTF8 ... The content is stored using UTF-8 encoding and may contain a byte order mark.
|
datetime GetDate()
string GetHash()
integer GetID()
integer GetSize()
boolean IsModified()
void SetContent(
transaction transaction,
integer flags,
integer codepage,
string content)
Name |
Description |
transaction |
The transaction to be used (e.g.
cootx for the current one). |
flags |
COOGC_MULTIBYTEFILE ... The string is stored using the given codepage.COOGC_UNICODEFILE ... The string is stored using UTF-16 little endian encoding (without byte order mark).COOGC_BASE64 ... The string is a Base64 encoded binary content which will be decoded before storing the binary data.COOGC_BASE16 ... The string is a Base16 encoded binary content which will be decoded before storing the binary data.
|
codepage |
The target codepage which is used to store the string.
COOGC_ACP ... The string is converted to the ANSI codepage 1252 (Latin 1/Western Europe). If conversion is not possible the error COOERR_INVCHARSEQUENCE is returned.COOGC_UTF7 ... The string is stored using UTF-7 encoding.COOGC_UTF8 ... The string is stored using UTF-8 encoding and prefixed with a byte order mark if not already present.
|
content |
The Unicode string which should be stored within the content.
|
void Split()