added cp949 and cp950.
deleted win32 target files for watcom. too difficult to maintain. added cmgr for cp949 and cp950.
This commit is contained in:
@ -3,6 +3,8 @@ pkgincludedir = $(includedir)/qse/cmn
|
||||
pkginclude_HEADERS = \
|
||||
alg.h \
|
||||
chr.h \
|
||||
cp949.h \
|
||||
cp950.h \
|
||||
dll.h \
|
||||
env.h \
|
||||
fio.h \
|
||||
|
@ -51,11 +51,11 @@ CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__pkginclude_HEADERS_DIST = alg.h chr.h dll.h env.h fio.h fma.h \
|
||||
fmt.h fs.h gdl.h htb.h hton.h ipad.h lda.h main.h map.h mbwc.h \
|
||||
mem.h nwad.h oht.h opt.h path.h pio.h pma.h rbt.h rex.h sio.h \
|
||||
sll.h slmb.h stdio.h str.h time.h tio.h tre.h utf8.h xma.h \
|
||||
Mmgr.hpp StdMmgr.hpp Mmged.hpp
|
||||
am__pkginclude_HEADERS_DIST = alg.h chr.h cp949.h cp950.h dll.h env.h \
|
||||
fio.h fma.h fmt.h fs.h gdl.h htb.h hton.h ipad.h lda.h main.h \
|
||||
map.h mbwc.h mem.h nwad.h oht.h opt.h path.h pio.h pma.h rbt.h \
|
||||
rex.h sio.h sll.h slmb.h stdio.h str.h time.h tio.h tre.h \
|
||||
utf8.h xma.h Mmgr.hpp StdMmgr.hpp Mmged.hpp
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
@ -229,11 +229,11 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
pkginclude_HEADERS = alg.h chr.h dll.h env.h fio.h fma.h fmt.h fs.h \
|
||||
gdl.h htb.h hton.h ipad.h lda.h main.h map.h mbwc.h mem.h \
|
||||
nwad.h oht.h opt.h path.h pio.h pma.h rbt.h rex.h sio.h sll.h \
|
||||
slmb.h stdio.h str.h time.h tio.h tre.h utf8.h xma.h \
|
||||
$(am__append_1)
|
||||
pkginclude_HEADERS = alg.h chr.h cp949.h cp950.h dll.h env.h fio.h \
|
||||
fma.h fmt.h fs.h gdl.h htb.h hton.h ipad.h lda.h main.h map.h \
|
||||
mbwc.h mem.h nwad.h oht.h opt.h path.h pio.h pma.h rbt.h rex.h \
|
||||
sio.h sll.h slmb.h stdio.h str.h time.h tio.h tre.h utf8.h \
|
||||
xma.h $(am__append_1)
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
|
103
qse/include/qse/cmn/cp949.h
Normal file
103
qse/include/qse/cmn/cp949.h
Normal file
@ -0,0 +1,103 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
|
||||
QSE 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 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
QSE 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 QSE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _QSE_CMN_CP949_H_
|
||||
#define _QSE_CMN_CP949_H_
|
||||
|
||||
#include <qse/types.h>
|
||||
#include <qse/macros.h>
|
||||
|
||||
/** @file
|
||||
* This file provides functions, types, macros for cp949 conversion.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The QSE_CP949LEN_MAX macro defines the maximum number of bytes
|
||||
* needed to form a single unicode character.
|
||||
*/
|
||||
#define QSE_CP949LEN_MAX 2
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The qse_uctocp949() function converts a unicode character to a cp949 sequence.
|
||||
* @return
|
||||
* - 0 is returned if @a uc is invalid.
|
||||
* - An integer greater than @a size is returned if the @a cp949 sequence buffer
|
||||
* is not #QSE_NULL and not large enough. This integer is actually the number
|
||||
* of bytes needed.
|
||||
* - If @a cp949 is #QSE_NULL, the number of bytes that would have been stored
|
||||
* into @a cp949 if it had not been #QSE_NULL is returned.
|
||||
* - An integer between 1 and size inclusive is returned in all other cases.
|
||||
* @note
|
||||
* This function doesn't check invalid unicode code points and performs
|
||||
* conversion compuationally.
|
||||
*/
|
||||
qse_size_t qse_uctocp949 (
|
||||
qse_wchar_t uc,
|
||||
qse_mchar_t* cp949,
|
||||
qse_size_t size
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_cp949touc() function converts a cp949 sequence to a unicode character.
|
||||
* @return
|
||||
* - 0 is returned if the @a cp949 sequence is invalid.
|
||||
* - An integer greater than @a size is returned if the @a cp949 sequence is
|
||||
* not complete.
|
||||
* - An integer between 1 and size inclusive is returned in all other cases.
|
||||
*/
|
||||
qse_size_t qse_cp949touc (
|
||||
const qse_mchar_t* cp949,
|
||||
qse_size_t size,
|
||||
qse_wchar_t* uc
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_cp949lenmax() function scans at most @a size bytes from the @a cp949
|
||||
* sequence and returns the number of bytes needed to form a single unicode
|
||||
* character.
|
||||
* @return
|
||||
* - 0 is returned if the @a cp949 sequence is invalid.
|
||||
* - An integer greater than @a size is returned if the @a cp949 sequence is
|
||||
* not complete.
|
||||
* - An integer between 1 and size inclusive is returned in all other cases.
|
||||
*/
|
||||
qse_size_t qse_cp949len (
|
||||
const qse_mchar_t* cp949,
|
||||
qse_size_t size
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_cp949lenmax() function returns the maximum number of bytes needed
|
||||
* to form a single unicode character. Use #QSE_CP949LEN_MAX if you need a
|
||||
* compile-time constant.
|
||||
*/
|
||||
qse_size_t qse_cp949lenmax (
|
||||
void
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
103
qse/include/qse/cmn/cp950.h
Normal file
103
qse/include/qse/cmn/cp950.h
Normal file
@ -0,0 +1,103 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
|
||||
QSE 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 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
QSE 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 QSE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _QSE_CMN_CP950_H_
|
||||
#define _QSE_CMN_CP950_H_
|
||||
|
||||
#include <qse/types.h>
|
||||
#include <qse/macros.h>
|
||||
|
||||
/** @file
|
||||
* This file provides functions, types, macros for cp950 conversion.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The QSE_CP950LEN_MAX macro defines the maximum number of bytes
|
||||
* needed to form a single unicode character.
|
||||
*/
|
||||
#define QSE_CP950LEN_MAX 2
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The qse_uctocp950() function converts a unicode character to a cp950 sequence.
|
||||
* @return
|
||||
* - 0 is returned if @a uc is invalid.
|
||||
* - An integer greater than @a size is returned if the @a cp950 sequence buffer
|
||||
* is not #QSE_NULL and not large enough. This integer is actually the number
|
||||
* of bytes needed.
|
||||
* - If @a cp950 is #QSE_NULL, the number of bytes that would have been stored
|
||||
* into @a cp950 if it had not been #QSE_NULL is returned.
|
||||
* - An integer between 1 and size inclusive is returned in all other cases.
|
||||
* @note
|
||||
* This function doesn't check invalid unicode code points and performs
|
||||
* conversion compuationally.
|
||||
*/
|
||||
qse_size_t qse_uctocp950 (
|
||||
qse_wchar_t uc,
|
||||
qse_mchar_t* cp950,
|
||||
qse_size_t size
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_cp950touc() function converts a cp950 sequence to a unicode character.
|
||||
* @return
|
||||
* - 0 is returned if the @a cp950 sequence is invalid.
|
||||
* - An integer greater than @a size is returned if the @a cp950 sequence is
|
||||
* not complete.
|
||||
* - An integer between 1 and size inclusive is returned in all other cases.
|
||||
*/
|
||||
qse_size_t qse_cp950touc (
|
||||
const qse_mchar_t* cp950,
|
||||
qse_size_t size,
|
||||
qse_wchar_t* uc
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_cp950lenmax() function scans at most @a size bytes from the @a cp950
|
||||
* sequence and returns the number of bytes needed to form a single unicode
|
||||
* character.
|
||||
* @return
|
||||
* - 0 is returned if the @a cp950 sequence is invalid.
|
||||
* - An integer greater than @a size is returned if the @a cp950 sequence is
|
||||
* not complete.
|
||||
* - An integer between 1 and size inclusive is returned in all other cases.
|
||||
*/
|
||||
qse_size_t qse_cp950len (
|
||||
const qse_mchar_t* cp950,
|
||||
qse_size_t size
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_cp950lenmax() function returns the maximum number of bytes needed
|
||||
* to form a single unicode character. Use #QSE_CP950LEN_MAX if you need a
|
||||
* compile-time constant.
|
||||
*/
|
||||
qse_size_t qse_cp950lenmax (
|
||||
void
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
@ -37,8 +37,10 @@ extern "C" {
|
||||
/* --------------------------------------------------- */
|
||||
/* BUILTIN CMGR */
|
||||
/* --------------------------------------------------- */
|
||||
extern qse_cmgr_t* qse_utf8cmgr;
|
||||
extern qse_cmgr_t* qse_slmbcmgr;
|
||||
extern qse_cmgr_t* qse_utf8cmgr;
|
||||
extern qse_cmgr_t* qse_cp949cmgr;
|
||||
extern qse_cmgr_t* qse_cp950cmgr;
|
||||
|
||||
/**
|
||||
* The qse_getfindcmgr() function find a builtin cmgr matching a given
|
||||
|
@ -86,3 +86,10 @@
|
||||
# error Define the size of various data types.
|
||||
#endif
|
||||
|
||||
/* make sure you change these when you change
|
||||
* the version in configure.ac */
|
||||
#define QSE_PACKAGE_VERSION "0.5.6"
|
||||
#define QSE_PACKAGE_VERSION_MAJOR 0
|
||||
#define QSE_PACKAGE_VERSION_MINOR 5
|
||||
#define QSE_PACKAGE_VERSION_PATCH 6
|
||||
|
||||
|
@ -141,3 +141,10 @@ _M_X64 x64 platform
|
||||
#else
|
||||
# error Define the size of various data types.
|
||||
#endif
|
||||
|
||||
/* make sure you change these when you change
|
||||
* the version in configure.ac */
|
||||
#define QSE_PACKAGE_VERSION "0.5.6"
|
||||
#define QSE_PACKAGE_VERSION_MAJOR 0
|
||||
#define QSE_PACKAGE_VERSION_MINOR 5
|
||||
#define QSE_PACKAGE_VERSION_PATCH 6
|
||||
|
@ -63,3 +63,10 @@
|
||||
# error Define the size of various data types.
|
||||
#endif
|
||||
|
||||
/* make sure you change these when you change
|
||||
* the version in configure.ac */
|
||||
#define QSE_PACKAGE_VERSION "0.5.6"
|
||||
#define QSE_PACKAGE_VERSION_MAJOR 0
|
||||
#define QSE_PACKAGE_VERSION_MINOR 5
|
||||
#define QSE_PACKAGE_VERSION_PATCH 6
|
||||
|
||||
|
@ -101,3 +101,12 @@
|
||||
#endif
|
||||
|
||||
#define QSE_SIZEOF_WCHAR_T 4
|
||||
|
||||
|
||||
/* make sure you change these when you change
|
||||
* the version in configure.ac */
|
||||
#define QSE_PACKAGE_VERSION "0.5.6"
|
||||
#define QSE_PACKAGE_VERSION_MAJOR 0
|
||||
#define QSE_PACKAGE_VERSION_MINOR 5
|
||||
#define QSE_PACKAGE_VERSION_PATCH 6
|
||||
|
||||
|
Reference in New Issue
Block a user