%g
Full Description
swirl
Syntax
  %format-modifier g(stream-name)


Purpose

OmniMark's buffers and referents contain character strings of any size, from a few characters to large portions of a document. Buffers can be constructed from document content, attribute values, or strings in an OmniMark program. Once a buffer has been created, the "%g" format item can be used to access its content.

The stream must be attached to a referent or buffer, and closed before the "%g" format is used. The following modifiers are allowed:

  • "number f". If the specified number is less than the minimum number of characters needed to format the value, the modifier is ignored. If it is greater, space characters are added to the right of the value to fill it out to the field width.
  • "l". The "l" modifier converts all of the text to lowercase. This modifier cannot be used with the "u" modifier.
  • "k". This modifier is allowed when the field-width modifier is given. It causes padding to be done on the left side of the field instead of the right. This modifier requires the "f" modifier.
  • "u". The "u" modifier converts all of the text to uppercase. This modifier cannot be used with the "l" modifier.

Copyright © OmniMark Technologies Corporation, 1988-1998.