![]() ![]() |
GoFiler Legato Script Reference
Legato v 1.6k Application v 6.6a
|
| Table of Contents | < < Previous | Next >> |
Chapter Five — General Functions (continued)
Overview
The PoolAppendAsPCData function adds a converted version of a specified string to a String Pool Object.
Syntax/Parameters
Syntax
int = PoolAppendAsPCData ( handle hPool, string data, [int flags] );
Parameters
hPool
A handle specifying the String Pool object.
data
A string to add to the pool. This string will be processed during the append process.
flags
Optional int flags to direct the method of conversion. If omitted the value is 0x00000000.
Return Value
Returns an int containing the offset (location) where the appended string starts within the pool or a formatted error code on failure.
Remarks
The PoolAppendAsPCData function converts and adds the resulting characters to the existing string end position. The new string is concatenated with the existing strings in the pool. If the PoolPut or PoolOverlay functions are not used, the pool will consist of a single contiguous string. The source string is processed to be PCDATA safe content for HTML, converting escaped characters and entities as needed.
The flags can be a combination of the following bitwise options:
| Code | Bitwise Value | Comment | ||||
| SPO_PCDATA_ADD_BR | 0x00000001 | Replace 0x0D with <BR> | ||||
| SPO_PCDATA_ADD_XML | 0x00000002 | Use XML for break <br /> the SPO_PCDATA_ADD_BR option must also be set. | ||||
| SPO_PCDATA_NO_CODES | 0x00000004 | Don’t Dump In Code | ||||
| SPO_PCDATA_LEAD_NBSP | 0x00000008 | Leading Spaces to Non-Breaking Space | ||||
| SPO_PCDATA_UP_TO_UNICODE | 0x00000010 | Convert ANSI to UNICODE | ||||
| SPO_PCDATA_NO_ESCAPE | 0x00000020 | Do Not Convert Escape Codes (no < > & conversion) | ||||
| SPO_PCDATA_PASS_RETURNS | 0x00000040 | Pass Returns and Line Feeds | ||||
| SPO_PCDATA_BACKSLASH_CODES | 0x00000080 | Process Backslashed Codes (processes \r and \n as return and line feed codes) | ||||
| SPO_PCDATA_ESCAPE_QUOTE | 0x00000100 | Escape Quote (") Character — If set the character " will replace the double quote 0x22. | ||||
| SPO_PCDATA_ACCEPT_UTF_8 | 0x00000200 | Incoming Text is UTF-8 | ||||
| SPO_PCDATA_WRAP_LONG_LINES | 0x00001000 | Wrap Excessive Long Lines | ||||
| SPO_PCDATA_PASS_THROUGH | 0x00002000 | Pass Through Everything Not Control |
When flags is not provided or the value is 0x00000000:
– Leading spaces are ignored
– Protected characters are converted: < to %lt;, > to > and & to &
– The double quote (") is not processed
– Returns and line ending characters are passed through unprocessed
– Characters less than 0x1F (except LF 0x0A and CR 0x0D) are not converted
– Characters above 0x80 are converted to decimal character entities
– UTF-8 is not processed (the characters will be converted to entities, which is generally not desirable).
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
| Table of Contents | < < Previous | Next >> |
© 2012-2026 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission is prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. Novaworks, GoFiler™ and Legato™ are registered trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are the property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.