2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A/* Copyright (c) 1988 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * Copyright (c) 1997, by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * Translate process code to byte-equivalent 2N/A * Return the length of the byte-equivalent string 2N/A * use _curs_wctomb() instead of _code2byte(code, bytes) 2N/A * Translate a set of byte to a single process code 2N/A * use _curs_mbtowc() instead of wchar_t _byte2code(bytes) 2N/A * Translate a string of wchar_t to a byte string. 2N/A * code: the input code string 2N/A * byte: if not NULL, space to store the output string 2N/A * n: maximum number of codes to be translated. 2N/A /* compute the length of the code string */ 2N/A /* get space to store the translated string */ 2N/A /* no space to do it */ 2N/A /* start the translation */ 2N/A * Translate a byte-string to a wchar_t string.