layout_object_shapeboxchars Subroutine

Purpose

Shapes box characters.

Library

Layout Library (libi18n.a)

Syntax

#include <sys/lc_layout.h>int layout_object_shapeboxchars
(layout_object,InpBuf,InpSize,OutBuf)
LayoutObject layout_object;
const char *InpBuf;
const size_t InpSize;
char *OutBuf;

Description

The layout_object_shapeboxchars subroutine shapes box characters into the VT100 box character set.

Note: If you are developing internationalized applications that may support multibyte locales, please see Use of the libcur Package in AIX® Version 7.1 General Programming Concepts: Writing and Debugging Programs

Parameters

Item Description
layout_object Specifies the LayoutObject structure created by the layout_object_create subroutine.
InpBuf Specifies the source text to be processed.
InpSize Specifies the number of code elements to be processed.
OutBuf Contains the shaped output text.

Return Values

Upon successful completion, this subroutine returns a value of 0.

Error Codes

If this subroutine fails, it returns the following values:

Item Description
LAYOUT_EILSEQ Shaping stopped due to an input code element that cannot be mapped into the VT100 box character set.
LAYOUT_EINVAL Shaping stopped due to an incomplete code element or shift sequence at the end of the input buffer.