Skip to content

Commit

Permalink
Move UTF8 to core
Browse files Browse the repository at this point in the history
  • Loading branch information
marekr committed Sep 8, 2023
1 parent 6e04c28 commit 5da88d1
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ set( COMMON_SRCS
title_block.cpp
trace_helpers.cpp
undo_redo_container.cpp
utf8.cpp
validators.cpp
wildcards_and_files_ext.cpp
drawing_sheet/ds_painter.cpp
Expand Down
2 changes: 1 addition & 1 deletion common/gbr_metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <wx/datetime.h>

#include <gbr_metadata.h>
#include <utf8.h>
#include <core\utf8.h>


wxString GbrMakeCreationDateAttributeString( GBR_NC_STRING_FORMAT aFormat )
Expand Down
4 changes: 2 additions & 2 deletions common/swig/kicad.i
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ typedef long time_t;
%rename(utf8_to_wxstring) operator wxString () const;
%rename(utf8_to_string) operator const std::string& () const;

#include <utf8.h>
%include <utf8.h>
#include <core\utf8.h>
%include <core\utf8.h>


%extend UTF8
Expand Down
2 changes: 1 addition & 1 deletion cvpcb/cvpcb_association.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define CVPCB_ASSOCIATION_H

#include <lib_id.h>
#include <utf8.h>
#include <core\utf8.h>

/**
* A class to define a footprint association to be made in cvpcb.
Expand Down
2 changes: 1 addition & 1 deletion include/font/stroke_font.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <map>
#include <deque>
#include <algorithm>
#include <utf8.h>
#include <core\utf8.h>
#include <math/box2.h>
#include <font/font.h>

Expand Down
2 changes: 1 addition & 1 deletion include/lib_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define _LIB_ID_H_

#include <richio.h>
#include <utf8.h>
#include <core\utf8.h>

/**
* A logical library item identifier and consists of various portions much like a URI.
Expand Down
2 changes: 1 addition & 1 deletion include/markup_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <pegtl/contrib/parse_tree.hpp>
#include <iostream>
#include <string>
#include <utf8.h>
#include <core\utf8.h>


namespace MARKUP
Expand Down
2 changes: 1 addition & 1 deletion include/richio.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


#include <vector>
#include <utf8.h>
#include <core\utf8.h>

// I really did not want to be dependent on wxWidgets in richio
// but the errorText needs to be wide char so wxString rules.
Expand Down
2 changes: 1 addition & 1 deletion include/string_utf8_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <string>
#include <map>
#include <utf8.h>
#include <core\utf8.h>


/**
Expand Down
1 change: 1 addition & 0 deletions libs/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ add_library( core STATIC
base64.cpp
observable.cpp
profile.cpp
utf8.cpp
thread_pool.cpp
version_compare.cpp
wx_stl_compat.cpp
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions common/utf8.cpp → libs/core/utf8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/

#include <utf8.h>
#include <ki_exception.h>
#include <core\utf8.h>
#include <wx/strconv.h>
#include <wx/buffer.h>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions pcbnew/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ set( SWIG_FLAGS
-I${CMAKE_SOURCE_DIR}/scripting
-I${CMAKE_SOURCE_DIR}/pcbnew/python/scripting
-I${CMAKE_SOURCE_DIR}/common/swig
-I${CMAKE_SOURCE_DIR}/libs/core/include
-I${CMAKE_SOURCE_DIR}/libs/kimath/include
-I${CMAKE_BINARY_DIR}
)
Expand Down
2 changes: 1 addition & 1 deletion qa/tests/common/test_utf8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <qa_utils/wx_utils/unit_test_utils.h>

#include <utf8.h>
#include <core\utf8.h>

#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion tools/utf8_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


#include <string>
#include <utf8.h>
#include <core\utf8.h>
#include <wx/string.h>


Expand Down

0 comments on commit 5da88d1

Please sign in to comment.