Skip to content

Commit

Permalink
Merge branch 'add_encoder'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaorut committed Dec 20, 2020
2 parents 1112ecb + 0365498 commit 9dac7ad
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 29 deletions.
2 changes: 1 addition & 1 deletion library/platform_dependent/cpp/include/tetengo/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2019-2020 kaoru https://www.tetengo.org/

pkg_headers = \
platform_dependent/text_encoder.hpp
platform_dependent/text_encX.hpp

extra_headers = \
platform_dependent/0namespace.dox
Expand Down
2 changes: 1 addition & 1 deletion library/platform_dependent/cpp/src/unixos/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
headers =

sources = \
tetengo.platform_dependent.text_encoder.cpp
tetengo.platform_dependent.text_X.cpp

lib_LIBRARIES = libtetengo.platform_dependent.cpp.a

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <boost/preprocessor.hpp>
#include <boost/scope_exit.hpp>

#include <tetengo/platform_dependent/text_encoder.hpp>
#include <tetengo/platform_dependent/text_encX.hpp>


namespace tetengo::platform_dependent
Expand Down
2 changes: 1 addition & 1 deletion library/platform_dependent/cpp/src/windows/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
headers =

sources = \
tetengo.platform_dependent.text_encoder.cpp
tetengo.platform_dependent.textX.cpp

EXTRA_DIST = \
${headers} ${sources}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <boost/core/noncopyable.hpp>

#include <tetengo/platform_dependent/text_encoder.hpp>
#include <tetengo/platform_dependent/text_encX.hpp>


namespace tetengo::platform_dependent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,20 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\precompiled\precompiled.h" />
<ClInclude Include="include\tetengo\platform_dependent\text_encoder.hpp" />
<ClInclude Include="include\tetengo\platform_dependent\text_encX.hpp" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\precompiled\precompiled.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="src\unixos\tetengo.platform_dependent.text_encoder.cpp">
<ClCompile Include="src\unixos\tetengo.platform_dependent.text_X.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="src\windows\tetengo.platform_dependent.text_encoder.cpp" />
<ClCompile Include="src\windows\tetengo.platform_dependent.textX.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
</None>
</ItemGroup>
<ItemGroup>
<ClInclude Include="include\tetengo\platform_dependent\text_encoder.hpp">
<Filter>header\tetengo::platform_dependent</Filter>
</ClInclude>
<ClInclude Include="..\..\..\precompiled\precompiled.h">
<Filter>src\windows</Filter>
</ClInclude>
<ClInclude Include="include\tetengo\platform_dependent\text_encX.hpp">
<Filter>header\tetengo::platform_dependent</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\unixos\tetengo.platform_dependent.text_encoder.cpp">
<Filter>src\unixos</Filter>
</ClCompile>
<ClCompile Include="src\windows\tetengo.platform_dependent.text_encoder.cpp">
<ClCompile Include="..\..\..\precompiled\precompiled.cpp">
<Filter>src\windows</Filter>
</ClCompile>
<ClCompile Include="..\..\..\precompiled\precompiled.cpp">
<ClCompile Include="src\unixos\tetengo.platform_dependent.text_X.cpp">
<Filter>src\unixos</Filter>
</ClCompile>
<ClCompile Include="src\windows\tetengo.platform_dependent.textX.cpp">
<Filter>src\windows</Filter>
</ClCompile>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion library/platform_dependent/test/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ headers =

sources = \
master.cpp \
test_tetengo.platform_dependent.text_encoder.cpp
test_tetengo.platform_dependent.text_eX.cpp

check_PROGRAMS = test_tetengo.platform_dependent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <boost/preprocessor.hpp>
#include <boost/test/unit_test.hpp>

#include <tetengo/platform_dependent/text_encoder.hpp>
#include <tetengo/platform_dependent/text_encX.hpp>


namespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="src\master.cpp" />
<ClCompile Include="src\test_tetengo.platform_dependent.text_encoder.cpp" />
<ClCompile Include="src\test_tetengo.platform_dependent.text_eX.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\precompiled\precompiled.h" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<ClCompile Include="src\master.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="src\test_tetengo.platform_dependent.text_encoder.cpp">
<ClCompile Include="..\..\..\precompiled\precompiled.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="..\..\..\precompiled\precompiled.cpp">
<ClCompile Include="src\test_tetengo.platform_dependent.text_eX.cpp">
<Filter>src</Filter>
</ClCompile>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion library/text/cpp/src/tetengo.text.encoding.cp932.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <boost/core/noncopyable.hpp>

#include <tetengo/platform_dependent/text_encoder.hpp>
#include <tetengo/platform_dependent/text_encX.hpp>
#include <tetengo/text/encoding/cp932.hpp>


Expand Down
1 change: 1 addition & 0 deletions precompiled/precompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <map>
#include <memory>
#include <mutex>
#include <numeric>
#include <optional>
#include <queue>
#include <regex>
Expand Down
8 changes: 5 additions & 3 deletions tools/install_tetengo_library.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ if not ""%INSTALL_PATH%""=="""" (

echo Installing tetengo...

xcopy /s /i /f /y "%~dp0"..\library\text\c\include\tetengo\text %INSTALL_PATH%\include\tetengo\text\
xcopy /s /i /f /y "%~dp0"..\library\text\cpp\include\tetengo\text %INSTALL_PATH%\include.cpp\tetengo\text\

xcopy /s /i /f /y "%~dp0"..\library\json\c\include\tetengo\json %INSTALL_PATH%\include\tetengo\json\
xcopy /s /i /f /y "%~dp0"..\library\json\cpp\include\tetengo\json %INSTALL_PATH%\include.cpp\tetengo\json\

xcopy /s /i /f /y "%~dp0"..\library\lattice\c\include\tetengo\lattice %INSTALL_PATH%\include\tetengo\lattice\
xcopy /s /i /f /y "%~dp0"..\library\lattice\cpp\include\tetengo\lattice %INSTALL_PATH%\include.cpp\tetengo\lattice\

xcopy /s /i /f /y "%~dp0"..\library\platform_dependent\cpp\include\tetengo\platform_dependent %INSTALL_PATH%\include.cpp\tetengo\platform_dependent\

xcopy /s /i /f /y "%~dp0"..\library\text\c\include\tetengo\text %INSTALL_PATH%\include\tetengo\text\
xcopy /s /i /f /y "%~dp0"..\library\text\cpp\include\tetengo\text %INSTALL_PATH%\include.cpp\tetengo\text\

xcopy /s /i /f /y "%~dp0"..\library\trie\c\include\tetengo\trie %INSTALL_PATH%\include\tetengo\trie\
xcopy /s /i /f /y "%~dp0"..\library\trie\cpp\include\tetengo\trie %INSTALL_PATH%\include.cpp\tetengo\trie\

Expand Down
2 changes: 1 addition & 1 deletion tools/make_character_property_map_cpp.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ curl http://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakProperty.tx

python3 %~dp0\make_character_property_map.py %~dp0\EastAsianWidth.txt %~dp0\emoji-data.txt %~dp0\GraphemeBreakProperty.txt %~dp0\character_property_map.txt

python3 %~dp0\make_character_property_map_cpp.py %~dp0\character_property_map.txt %~dp0\..\library\text\cpp\src\tetengo.text.character_property_map.cpp
python3 %~dp0\make_character_property_map_cpp.py %~dp0\character_property_map.txt %~dp0\..\library\text\cpp\src\tetengo.text.grapheme_splitting.character_property_map.cpp
4 changes: 2 additions & 2 deletions tools/make_character_property_map_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def make_cpp_source(elements):
#include <cstddef>
#include "tetengo.text.character_property_map.hpp"
#include "tetengo.text.grapheme_splitting.character_property_map.hpp"
namespace tetengo::text
namespace tetengo::text::grapheme_splitting
{
'''
content += " const std::size_t character_property_map_size = {};\n\n".format(len(elements))
Expand Down
2 changes: 1 addition & 1 deletion tools/make_character_property_map_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ curl http://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakProperty.tx

$TOOLS_DIR/make_character_property_map.py $TOOLS_DIR/EastAsianWidth.txt $TOOLS_DIR/emoji-data.txt $TOOLS_DIR/GraphemeBreakProperty.txt $TOOLS_DIR/character_property_map.txt

$TOOLS_DIR/make_character_property_map_cpp.py $TOOLS_DIR/character_property_map.txt $TOOLS_DIR/../library/text/cpp/src/tetengo.text.character_property_map.cpp
$TOOLS_DIR/make_character_property_map_cpp.py $TOOLS_DIR/character_property_map.txt $TOOLS_DIR/../library/text/cpp/src/tetengo.text.grapheme_splitting.character_property_map.cpp

0 comments on commit 9dac7ad

Please sign in to comment.