GSUnicode.h
/* GSUnicode.h
Copyright (C) 2014 Free Software Foundation, Inc.
Written by: Stefan Bidigaray
Date: November, 2014
This file is part of GNUstep CoreBase library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; see the file COPYING.LIB.
If not, see <http://www.gnu.org/licenses/> or write to the
Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __GSUNICODE_H__
#define __GSUNICODE_H__ 1
#include <CoreFoundation/CFBase.h>
#include <stdarg.h>
CF_EXPORT CFIndex
GSUnicodeFromEncoding (UniChar ** d, const UniChar * const dLimit,
CFStringEncoding enc, const UInt8 ** s,
const UInt8 * const sLimit, const UTF16Char loss);
CF_EXPORT CFIndex
GSUnicodeToEncoding (UInt8 ** d, const UInt8 * const dLimit,
CFStringEncoding enc, const UniChar ** s,
const UniChar * const sLimit, const char loss,
Boolean addBOM);
CFIndex
GSUnicodeFormatWithArguments (UniChar * __restrict__ s, CFIndex n,
CFTypeRef locale,
const UniChar * __restrict__ format,
CFIndex fmtlen, va_list ap);
CFIndex
GSUnicodeFormat (UniChar * __restrict__ s, CFIndex n, CFTypeRef locale,
const UniChar * __restrict__ format, CFIndex fmtlen, ...);
#if 0
CF_EXPORT CFIndex
GSUnicodeFormat (UniChar * d, UniChar * const dLimit, CFTypeRef locale,
const UniChar * f, const UniChar * const fLimit, ...);
CF_EXPORT CFIndex
GSUnicodeFormatWithArguments (UniChar * d, UniChar * const dLimit,
CFTypeRef locale, const UniChar * f,
const UniChar * fLimit, va_list ap);
#endif
#endif /* __GSUNICODE_H__ */
CFIndex
signed long CFIndex
Definition CFBase.h:165
GSUnicodeFromEncoding
CFIndex GSUnicodeFromEncoding(UniChar **d, const UniChar *const dLimit, CFStringEncoding enc, const UInt8 **s, const UInt8 *const sLimit, const UTF16Char loss)
Convert a string in some external encoding to Unicode (UTF-16).
GSUnicodeToEncoding
CFIndex GSUnicodeToEncoding(UInt8 **d, const UInt8 *const dLimit, CFStringEncoding enc, const UniChar **s, const UniChar *const sLimit, const char loss, Boolean addBOM)
Convert a Unicode string (UTF-16) to some external encoding.