Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ CtNextItem(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XctNextItem — parse the next item in a Compound Text string. 

SYNOPSIS

#include <X11/Xmu/Xct.h>

XctResult XctNextItem(data)
      XctData data;

ARGUMENTS

dataSpecifies the Compound Text structure. 

DESCRIPTION

XctNextItem parses the next item in the Compound Text string.  The return value indicates what kind of item is returned.  The item itself, it’s length, and the current contextual state, are reported as components of the XctData structure.  XctResult is an enumeration, with the following values:

XctSegment
The item contains some mixture of C0, GL, GR, and C1 characters.

XctC0Segment
The item contains only C0 characters.

XctGLSegment
The item contains only GL characters.

XctC1Segment
the item contains only C1 characters.

XctGRSegment
the item contains only GR characters.

XctExtendedSegment
The item contains an extended segment.

XctExtension
The item is an unknown extension control sequence.

XctHorizontal
The item indicates a change in horizontal direction or depth.  The new direction and depth are recorded in the XctData structure. 

XctEndOfText
The end of the Compound Text string has been reached.

XctError
The string contains a syntactic or semantic error; no further parsing should be performed.

STRUCTURES

typedef struct { XctString item; /∗ the action item ∗/  int item_length; /∗ the length of item in bytes ∗/  int char_size; /∗ the number of bytes per character in   ∗ item, with zero meaning variable ∗/  char ∗encoding; /∗ the XLFD encoding name for item ∗/  XctHDirection horizontal; /∗ the direction of item ∗/  int horz_depth; /∗ the current direction nesting depth ∗/  char ∗GL; /∗ the "{I} F" string for the current GL ∗/  char ∗GL_encoding; /∗ the XLFD encoding name for the current GL ∗/  int GL_set_size; /∗ 94 or 96 ∗/  int GL_char_size; /∗ the number of bytes per GL character ∗/  char ∗GR; /∗ the "{I} F" string for the current GR ∗/  char ∗GR_encoding; /∗ the XLFD encoding name the for current GR ∗/  int GR_set_size; /∗ 94 or 96 ∗/  int GR_char_size; /∗ the number of bytes per GR character ∗/  char ∗GLGR_encoding; /∗ the XLFD encoding name for the current   ∗ GL+GR, if known ∗/
      .
      .
      . } XctData;

SEE ALSO

XctCreate, XctFree, XctReset. 

Xlib Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026