Home --> Documentations --> PJLIB Reference
Go to the documentation of this file.
19#ifndef __PJ_UNICODE_H__
20#define __PJ_UNICODE_H__
50 wchar_t *wbuf, int wbuf_count);
64 char *buf, int buf_size);
67#if defined(PJ_NATIVE_STRING_IS_UNICODE) && PJ_NATIVE_STRING_IS_UNICODE!=0
75# define PJ_DECL_UNICODE_TEMP_BUF(buf,size) wchar_t buf[size];
81# define PJ_STRING_TO_NATIVE(s,buf,max) pj_ansi_to_unicode( \
91# define PJ_DECL_ANSI_TEMP_BUF(buf,size) char buf[size];
98# define PJ_NATIVE_TO_STRING(cs,buf,max) pj_unicode_to_ansi( \
110# define PJ_DECL_UNICODE_TEMP_BUF(var,size)
115# define PJ_STRING_TO_NATIVE(s,buf,max) ((char*)s)
122# define PJ_DECL_ANSI_TEMP_BUF(buf,size)
127# define PJ_NATIVE_TO_STRING(cs,buf,max) ((char*)(const char*)cs)
long pj_ssize_t Definition: types.h:64
wchar_t * pj_ansi_to_unicode(const char *str, int len, wchar_t *wbuf, int wbuf_count)
char * pj_unicode_to_ansi(const wchar_t *wstr, pj_ssize_t len, char *buf, int buf_size)
#define PJ_BEGIN_DECL Definition: config.h:1284
#define PJ_END_DECL Definition: config.h:1285
Declaration of basic types and utility.
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|