Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5c715d37
Kaydet (Commit)
5c715d37
authored
Agu 02, 2011
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert i18nutil to gbuild
üst
3f07bf80
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
209 additions
and
77 deletions
+209
-77
Library_i18nutil.mk
i18nutil/Library_i18nutil.mk
+54
-0
Makefile
i18nutil/Makefile
+38
-0
Module_i18nutil.mk
i18nutil/Module_i18nutil.mk
+35
-0
Package_inc.mk
i18nutil/Package_inc.mk
+37
-0
casefolding.hxx
i18nutil/inc/i18nutil/casefolding.hxx
+2
-1
i18nutildllapi.h
i18nutil/inc/i18nutil/i18nutildllapi.h
+16
-0
oneToOneMapping.hxx
i18nutil/inc/i18nutil/oneToOneMapping.hxx
+7
-6
unicode.hxx
i18nutil/inc/i18nutil/unicode.hxx
+2
-1
widthfolding.hxx
i18nutil/inc/i18nutil/widthfolding.hxx
+2
-1
x_rtl_ustring.h
i18nutil/inc/i18nutil/x_rtl_ustring.h
+4
-3
build.lst
i18nutil/prj/build.lst
+1
-2
d.lst
i18nutil/prj/d.lst
+0
-14
makefile.mk
i18nutil/prj/makefile.mk
+11
-49
No files found.
i18nutil/Library_i18nutil.mk
0 → 100644
Dosyayı görüntüle @
5c715d37
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org 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 version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_Library_Library,i18nutil))
$(eval $(call gb_Library_add_package_headers,i18nutil,i18nutil_inc))
$(eval $(call gb_Library_add_api,i18nutil,\
udkapi \
offapi \
))
$(eval $(call gb_Library_add_defs,i18nutil,\
-DI18NUTIL_DLLIMPLEMENTATION \
))
$(eval $(call gb_Library_add_linked_libs,i18nutil,\
cppu \
sal \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_add_exception_objects,i18nutil,\
i18nutil/source/utility/casefolding \
i18nutil/source/utility/oneToOneMapping \
i18nutil/source/utility/unicode \
i18nutil/source/utility/widthfolding \
))
# vim: set noet sw=4:
i18nutil/Makefile
0 → 100644
Dosyayı görüntüle @
5c715d37
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org 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 version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
ifeq
($(strip
$(SOLARENV)),)
$(error
No
environment
set!)
endif
gb_PARTIALBUILD
:=
T
GBUILDDIR
:=
$(SOLARENV)
/gbuild
include
$(GBUILDDIR)/gbuild.mk
$(eval
$(call
gb_Module_make_global_targets,$(shell
ls
$(dir
$(realpath
$(firstword
$(MAKEFILE_LIST))))/Module*.mk)))
# vim: set noet sw=4 ts=4:
i18nutil/Module_i18nutil.mk
0 → 100644
Dosyayı görüntüle @
5c715d37
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org 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 version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_Module_Module,i18nutil))
$(eval $(call gb_Module_add_targets,i18nutil,\
Library_i18nutil \
Package_inc \
))
# vim: set noet sw=4:
i18nutil/Package_inc.mk
0 → 100644
Dosyayı görüntüle @
5c715d37
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org 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 version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_Package_Package,i18nutil_inc,$(SRCDIR)/i18nutil/inc))
$(eval $(call gb_Package_add_file,i18nutil_inc,inc/i18nutil/i18nutildllapi.h,i18nutil/i18nutildllapi.h))
$(eval $(call gb_Package_add_file,i18nutil_inc,inc/i18nutil/casefolding.hxx,i18nutil/casefolding.hxx))
$(eval $(call gb_Package_add_file,i18nutil_inc,inc/i18nutil/oneToOneMapping.hxx,i18nutil/oneToOneMapping.hxx))
$(eval $(call gb_Package_add_file,i18nutil_inc,inc/i18nutil/unicode.hxx,i18nutil/unicode.hxx))
$(eval $(call gb_Package_add_file,i18nutil_inc,inc/i18nutil/widthfolding.hxx,i18nutil/widthfolding.hxx))
$(eval $(call gb_Package_add_file,i18nutil_inc,inc/i18nutil/x_rtl_ustring.h,i18nutil/x_rtl_ustring.h))
# vim: set noet sw=4:
i18nutil/inc/i18nutil/casefolding.hxx
Dosyayı görüntüle @
5c715d37
...
...
@@ -32,6 +32,7 @@
#include <com/sun/star/i18n/TransliterationModules.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include "i18nutildllapi.h"
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
i18n
{
...
...
@@ -71,7 +72,7 @@ struct MappingElement
sal_Int8
current
;
};
class
casefolding
class
I18NUTIL_DLLPUBLIC
casefolding
{
public
:
static
Mapping
&
getValue
(
const
sal_Unicode
*
str
,
sal_Int32
pos
,
sal_Int32
len
,
com
::
sun
::
star
::
lang
::
Locale
&
aLocale
,
sal_uInt8
nMappingType
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
...
...
i18nutil/inc/i18nutil/i18nutildllapi.h
0 → 100644
Dosyayı görüntüle @
5c715d37
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#ifndef INCLUDED_I18NUTILDLLAPI_H
#define INCLUDED_I18NUTILDLLAPI_H
#include "sal/types.h"
#if defined(I18NUTIL_DLLIMPLEMENTATION)
#define I18NUTIL_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define I18NUTIL_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define I18NUTIL_DLLPRIVATE SAL_DLLPRIVATE
#endif
/* INCLUDED_I18NUTILDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
i18nutil/inc/i18nutil/oneToOneMapping.hxx
Dosyayı görüntüle @
5c715d37
...
...
@@ -30,6 +30,7 @@
#include <utility>
#include <rtl/ustring.hxx>
#include "i18nutildllapi.h"
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
i18n
{
...
...
@@ -47,12 +48,12 @@ typedef struct _UnicodePairWithFlag
UnicodePairFlag
flag
;
}
UnicodePairWithFlag
;
class
oneToOneMapping
class
I18NUTIL_DLLPUBLIC
oneToOneMapping
{
private
:
// no copy, no substitution
oneToOneMapping
(
const
oneToOneMapping
&
);
oneToOneMapping
&
operator
=
(
const
oneToOneMapping
&
);
I18NUTIL_DLLPRIVATE
oneToOneMapping
(
const
oneToOneMapping
&
);
I18NUTIL_DLLPRIVATE
oneToOneMapping
&
operator
=
(
const
oneToOneMapping
&
);
public
:
oneToOneMapping
(
OneToOneMappingTable_t
*
rpTable
,
const
size_t
rnSize
,
const
size_t
rnUnitSize
=
sizeof
(
OneToOneMappingTable_t
)
);
virtual
~
oneToOneMapping
();
...
...
@@ -68,14 +69,14 @@ protected:
size_t
mnSize
;
};
class
oneToOneMappingWithFlag
:
public
oneToOneMapping
class
I18NUTIL_DLLPUBLIC
oneToOneMappingWithFlag
:
public
oneToOneMapping
{
friend
class
widthfolding
;
private
:
// no copy, no substitution
oneToOneMappingWithFlag
(
const
oneToOneMappingWithFlag
&
);
oneToOneMappingWithFlag
&
operator
=
(
const
oneToOneMappingWithFlag
&
);
I18NUTIL_DLLPRIVATE
oneToOneMappingWithFlag
(
const
oneToOneMappingWithFlag
&
);
I18NUTIL_DLLPRIVATE
oneToOneMappingWithFlag
&
operator
=
(
const
oneToOneMappingWithFlag
&
);
public
:
oneToOneMappingWithFlag
(
UnicodePairWithFlag
*
rpTableWF
,
const
size_t
rnSize
,
const
UnicodePairFlag
rnFlag
);
virtual
~
oneToOneMappingWithFlag
();
...
...
i18nutil/inc/i18nutil/unicode.hxx
Dosyayı görüntüle @
5c715d37
...
...
@@ -30,6 +30,7 @@
#include <com/sun/star/i18n/UnicodeScript.hpp>
#include <sal/types.h>
#include "i18nutildllapi.h"
typedef
struct
_ScriptTypeList
{
sal_Int16
from
;
...
...
@@ -37,7 +38,7 @@ typedef struct _ScriptTypeList {
sal_Int16
value
;
}
ScriptTypeList
;
class
unicode
class
I18NUTIL_DLLPUBLIC
unicode
{
public
:
...
...
i18nutil/inc/i18nutil/widthfolding.hxx
Dosyayı görüntüle @
5c715d37
...
...
@@ -31,12 +31,13 @@
#include <sal/types.h>
#include <com/sun/star/uno/Sequence.hxx>
#include <i18nutil/oneToOneMapping.hxx>
#include "i18nutildllapi.h"
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
i18n
{
#define WIDTHFOLDNIG_DONT_USE_COMBINED_VU 0x01
class
widthfolding
class
I18NUTIL_DLLPUBLIC
widthfolding
{
public
:
static
oneToOneMapping
&
getfull2halfTable
();
...
...
i18nutil/inc/i18nutil/x_rtl_ustring.h
Dosyayı görüntüle @
5c715d37
...
...
@@ -33,6 +33,7 @@
#endif
#include <rtl/memory.h>
#include <rtl/alloc.h>
#include "i18nutildllapi.h"
/**
...
...
@@ -44,14 +45,14 @@
* @param [output] newStr
* @param [input] nLen
*/
inline
void
SAL_CALL
x_rtl_uString_new_WithLength
(
rtl_uString
**
newStr
,
sal_Int32
nLen
,
sal_Int32
_refCount
=
0
)
I18NUTIL_DLLPUBLIC
inline
void
SAL_CALL
x_rtl_uString_new_WithLength
(
rtl_uString
**
newStr
,
sal_Int32
nLen
,
sal_Int32
_refCount
=
0
)
{
*
newStr
=
(
rtl_uString
*
)
rtl_allocateMemory
(
sizeof
(
rtl_uString
)
+
sizeof
(
sal_Unicode
)
*
nLen
);
(
*
newStr
)
->
refCount
=
_refCount
;
(
*
newStr
)
->
length
=
nLen
;
}
inline
rtl_uString
*
SAL_CALL
x_rtl_uString_new_WithLength
(
sal_Int32
nLen
,
sal_Int32
_refCount
=
0
)
I18NUTIL_DLLPUBLIC
inline
rtl_uString
*
SAL_CALL
x_rtl_uString_new_WithLength
(
sal_Int32
nLen
,
sal_Int32
_refCount
=
0
)
{
rtl_uString
*
newStr
=
(
rtl_uString
*
)
rtl_allocateMemory
(
sizeof
(
rtl_uString
)
+
sizeof
(
sal_Unicode
)
*
nLen
);
newStr
->
refCount
=
_refCount
;
...
...
@@ -62,7 +63,7 @@ inline rtl_uString * SAL_CALL x_rtl_uString_new_WithLength( sal_Int32 nLen, sal_
/**
* Release <code>rtl_uString</code> regardless its reference count.
*/
inline
void
SAL_CALL
x_rtl_uString_release
(
rtl_uString
*
value
)
I18NUTIL_DLLPUBLIC
inline
void
SAL_CALL
x_rtl_uString_release
(
rtl_uString
*
value
)
{
rtl_freeMemory
(
value
);
}
...
...
i18nutil/prj/build.lst
Dosyayı görüntüle @
5c715d37
inu i18nutil : sal cppu offapi NULL
inu i18nutil usr1 - all inu_mkout NULL
inu i18nutil\source\utility nmake - all inu_utility NULL
inu i18nutil\prj nmake - all inu_prj NULL
i18nutil/prj/d.lst
Dosyayı görüntüle @
5c715d37
mkdir: %_DEST%\inc\i18nutil
..\inc\i18nutil\casefolding.hxx %_DEST%\inc\i18nutil\casefolding.hxx
..\inc\i18nutil\oneToOneMapping.hxx %_DEST%\inc\i18nutil\oneToOneMapping.hxx
..\inc\i18nutil\unicode.hxx %_DEST%\inc\i18nutil\unicode.hxx
..\inc\i18nutil\widthfolding.hxx %_DEST%\inc\i18nutil\widthfolding.hxx
..\inc\i18nutil\x_rtl_ustring.h %_DEST%\inc\i18nutil\x_rtl_ustring.h
..\%__SRC%\bin\i18nutil*.dll %_DEST%\bin\i18nutil*.dll
..\%__SRC%\lib\libi18nutil*.so %_DEST%\lib\libi18nutil*.so
..\%__SRC%\lib\libi18nutil*.dylib %_DEST%\lib\libi18nutil*.dylib
..\%__SRC%\lib\libi18nutil*.a %_DEST%\lib\libi18nutil*.a
..\%__SRC%\lib\ii18nutil.lib %_DEST%\lib\ii18nutil.lib
i18nutil/
source/utility
/makefile.mk
→
i18nutil/
prj
/makefile.mk
Dosyayı görüntüle @
5c715d37
#*************************************************************************
#
*
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
...
...
@@ -23,56 +23,18 @@
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#************************************************************************
PRJ
=
..
$/
..
PRJNAME
=
i18nutil
TARGET
=
i18nutil
LIBTARGET
=
NO
# --- Settings -----------------------------------------------------
.INCLUDE
:
settings.mk
# --- Files --------------------------------------------------------
#*************************************************************************
EXCEPTIONSFILES
=
\
$(SLO)$/
casefolding.ob
j
PRJ
=
..
TARGET
=
pr
j
SLOFILES
=
\
$(EXCEPTIONSFILES)
\
$(SLO)$/
unicode.obj
\
$(SLO)$/
widthfolding.obj
\
$(SLO)$/
oneToOneMapping.obj
.INCLUDE
:
settings.mk
# Unicode utilities
SHL1TARGET
=
$(TARGET)$(COMID)
.IF
"$(COM)"
==
"MSC"
SHL1IMPLIB
=
i
$(TARGET)
.IF
"$(VERBOSE)"
!=
""
VERBOSEFLAG
:=
.ELSE
SHL1IMPLIB
=
$(TARGET)$(COMID)
VERBOSEFLAG
:=
-s
.ENDIF
DEF1DEPN
=
$(MISC)$/$(SHL1TARGET)
.flt
SHL1DEF
=
$(MISC)$/$(SHL1TARGET)
.def
DEF1NAME
=
$(SHL1TARGET)
DEFLIB1NAME
=
$(SHL1TARGET)
SHL1OBJS
=
$(SLOFILES)
LIB1TARGET
=
$(SLB)$/$(SHL1TARGET)
.lib
LIB1OBJFILES
=
$(SHL1OBJS)
SHL1STDLIBS
=
\
$(CPPULIB)
\
$(SALLIB)
# --- Targets ------------------------------------------------------
.INCLUDE
:
target.mk
$(MISC)$/$(SHL1TARGET).flt
:
makefile.mk
@echo
------------------------------
@echo Making
:
$@
@echo
CLEAR_THE_FILE
>
$@
@echo
__CT
>>
$@
all
:
cd
$(PRJ)
&&
$(GNUMAKE)
$(VERBOSEFLAG)
-r
-j
$(MAXPROCESS)
$(gb_MAKETARGET)
&&
$(GNUMAKE)
$(VERBOSEFLAG)
-r
deliverlog
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment