Browse Source

Move UTF8 to core

newinvert
Marek Roszko 2 years ago
parent
commit
5da88d1d0e
  1. 1
      common/CMakeLists.txt
  2. 2
      common/gbr_metadata.cpp
  3. 4
      common/swig/kicad.i
  4. 2
      cvpcb/cvpcb_association.h
  5. 2
      include/font/stroke_font.h
  6. 2
      include/lib_id.h
  7. 2
      include/markup_parser.h
  8. 2
      include/richio.h
  9. 2
      include/string_utf8_map.h
  10. 1
      libs/core/CMakeLists.txt
  11. 0
      libs/core/include/core/utf8.h
  12. 3
      libs/core/utf8.cpp
  13. 1
      pcbnew/CMakeLists.txt
  14. 2
      qa/tests/common/test_utf8.cpp
  15. 2
      tools/utf8_tests.cpp

1
common/CMakeLists.txt

@ -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

2
common/gbr_metadata.cpp

@ -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 )

4
common/swig/kicad.i

@ -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

2
cvpcb/cvpcb_association.h

@ -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.

2
include/font/stroke_font.h

@ -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>

2
include/lib_id.h

@ -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.

2
include/markup_parser.h

@ -25,7 +25,7 @@
#include <pegtl/contrib/parse_tree.hpp>
#include <iostream>
#include <string>
#include <utf8.h>
#include <core\utf8.h>
namespace MARKUP

2
include/richio.h

@ -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.

2
include/string_utf8_map.h

@ -23,7 +23,7 @@
#include <string>
#include <map>
#include <utf8.h>
#include <core\utf8.h>
/**

1
libs/core/CMakeLists.txt

@ -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

0
include/utf8.h → libs/core/include/core/utf8.h

3
common/utf8.cpp → libs/core/utf8.cpp

@ -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>

1
pcbnew/CMakeLists.txt

@ -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}
)

2
qa/tests/common/test_utf8.cpp

@ -23,7 +23,7 @@
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <utf8.h>
#include <core\utf8.h>
#include <algorithm>
#include <iostream>

2
tools/utf8_tests.cpp

@ -1,7 +1,7 @@
#include <string>
#include <utf8.h>
#include <core\utf8.h>
#include <wx/string.h>

Loading…
Cancel
Save