mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 09:40:09 +00:00
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was somewhat misleading. But the fact that they didn't match definitely made coding more difficult.
This commit is contained in:
parent
f221220fe2
commit
6aaf4413b3
3d-viewer
common
CMakeLists.txtbase_units.cpp
dialogs
drawing_sheet
eda_text.cppfootprint_info.cpphotkeys_basic.cpplib_tree_model.cpplib_tree_model_adapter.cpplibeval
libeval_compiler
plotters
plugins
project.cppproject
refdes_utils.cppscintilla_tricks.cppstring_utils.cppvalidators.cppwidgets
cvpcb
eeschema
connection_graph.cppcross-probing.cppsch_screen.cppsch_sheet.cppsch_sheet_pin.cppsch_symbol.cppsch_text.cpp
dialogs
dialog_change_symbols.cppdialog_edit_label.cppdialog_edit_one_field.cppdialog_edit_symbols_libid.cppdialog_erc.cppdialog_global_edit_text_and_graphics.cppdialog_lib_edit_pin_table.cppdialog_lib_new_symbol.hdialog_lib_symbol_properties.cppdialog_sheet_pin_properties.cppdialog_signal_list.cppdialog_symbol_fields_table.cppdialog_symbol_properties.cppdialog_update_symbol_fields.cpp
erc.cppfields_grid_table.cppgenerate_alias_info.cpplib_field.cppnetlist_exporters
netlist_exporter_cadstar.cppnetlist_exporter_orcadpcb2.cppnetlist_exporter_pspice.cppnetlist_exporter_xml.cppnetlist_generator.cpp
sch_connection.cppsch_edit_frame.cppsch_field.cppsch_painter.cppsch_plugins
altium
cadstar
eagle
kicad
legacy
sim
symbol_editor
symbol_library.cppsymbol_tree_synchronizing_adapter.cppsymbol_viewer_frame.cpptools
gerbview
excellon_read_drill_file.cppexport_to_pcbnew.cppgerber_draw_item.cppreadgerb.cpptoolbars_gerber.cpp
tools
include
pcb_calculator
pcbnew
board.cppboard_connected_item.cppboard_items_to_polygon_shape_transform.cpp
board_stackup_manager
build_BOM_from_board.cppconnectivity
dialogs
dialog_board_reannotate.cppdialog_copper_zones.cppdialog_exchange_footprints.cppdialog_find.cppdialog_footprint_wizard_list.cppdialog_global_edit_text_and_graphics.cppdialog_net_inspector.cppdialog_text_properties.cpppanel_edit_options.cpppanel_setup_rules.cpp
drc
exporters
export_footprint_associations.cppexport_footprints_placefile.cppgen_drill_report_files.cppgen_footprints_placefile.cppgendrill_Excellon_writer.cppgendrill_gerber_writer.cppgerber_placefile_writer.cpp
footprint.cppfootprint_info_impl.cppfootprint_libraries_utils.cppfp_text.cppfp_tree_model_adapter.cppfp_tree_synchronizing_adapter.cppgenerate_footprint_info.cppload_select_footprint.cppmicrowave
netinfo_item.cppnetlist_reader
pad.cpppcb_painter.cpppcb_text.cpppcb_track.cppplot_brditems_plotter.cppplugins
altium
eagle
fabmaster
kicad
legacy
python/scripting
tools
zone.cppqa
scripting
@ -31,7 +31,7 @@
|
||||
|
||||
#include "3d_info.h"
|
||||
#include <core/typeinfo.h>
|
||||
#include "kicad_string.h"
|
||||
#include "string_utils.h"
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include "plugins/3dapi/c3dmodel.h"
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include <pcb_text.h>
|
||||
#include <fp_shape.h>
|
||||
#include <zone.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <fp_text.h>
|
||||
#include <convert_basic_shapes_to_polygon.h>
|
||||
#include <trigo.h>
|
||||
|
@ -105,7 +105,7 @@ add_library( singletop STATIC EXCLUDE_FROM_ALL
|
||||
# Functions and data all need to use the #include <import_export.h> and be declared
|
||||
# as APIEXPORT
|
||||
set( LIB_KICAD_SRCS
|
||||
string.cpp
|
||||
string_utils.cpp
|
||||
)
|
||||
|
||||
if( future )
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
#include <base_units.h>
|
||||
#include <common.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <math/util.h> // for KiROUND
|
||||
#include <macros.h>
|
||||
#include <title_block.h>
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <dialog_helpers.h>
|
||||
#include <eda_draw_frame.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <macros.h>
|
||||
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/log.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <dialogs/html_messagebox.h>
|
||||
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include <dialogs/panel_setup_netclasses.h>
|
||||
#include <tool/tool_manager.h>
|
||||
#include <widgets/wx_grid.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <widgets/grid_color_swatch_helpers.h>
|
||||
#include <widgets/grid_icon_text_helpers.h>
|
||||
#include <widgets/grid_text_helpers.h>
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <wildcards_and_files_ext.h>
|
||||
#include <gal/color4d.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <wx/ffile.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/filedlg.h>
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <eda_item.h>
|
||||
#include <locale_io.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <drawing_sheet/ds_data_item.h>
|
||||
#include <drawing_sheet/ds_data_model.h>
|
||||
#include <drawing_sheet/ds_draw_item.h>
|
||||
|
@ -24,7 +24,7 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <locale_io.h>
|
||||
#include <macros.h>
|
||||
#include <math/vector2d.h>
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include <gal/color4d.h> // for COLOR4D, COLOR4D::BLACK
|
||||
#include <gal/stroke_font.h> // for STROKE_FONT
|
||||
#include <gr_text.h> // for GRText
|
||||
#include <kicad_string.h> // for UnescapeString
|
||||
#include <string_utils.h> // for UnescapeString
|
||||
#include <math/util.h> // for KiROUND
|
||||
#include <math/vector2d.h> // for VECTOR2D
|
||||
#include <richio.h>
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <footprint_info.h>
|
||||
#include <fp_lib_table.h>
|
||||
#include <dialogs/html_messagebox.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <kiface_ids.h>
|
||||
#include <kiway.h>
|
||||
#include <lib_id.h>
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <kiface_i.h>
|
||||
#include <hotkeys_basic.h>
|
||||
#include <id.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <eda_base_frame.h>
|
||||
#include <eda_draw_frame.h>
|
||||
#include <wildcards_and_files_ext.h>
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <lib_tree_item.h>
|
||||
#include <utility>
|
||||
#include <pgm_base.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
|
||||
// Each node gets this lowest score initially, without any matches applied.
|
||||
// Matches will then increase this score depending on match quality. This way,
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <widgets/ui_common.h>
|
||||
#include <wx/tokenzr.h>
|
||||
#include <wx/wupdlock.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
|
||||
|
||||
#define PINNED_ITEMS_KEY wxT( "PinnedItems" )
|
||||
|
@ -18,7 +18,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <libeval/numeric_evaluator.h>
|
||||
|
||||
/* The (generated) lemon parser is written in C.
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <wx/log.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <fill_type.h>
|
||||
#include <plotters_specific.h>
|
||||
#include <macros.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <convert_basic_shapes_to_polygon.h>
|
||||
#include <render_settings.h>
|
||||
#include <trigo.h>
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <eda_base_frame.h>
|
||||
#include <fill_type.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <convert_basic_shapes_to_polygon.h>
|
||||
#include <macros.h>
|
||||
#include <math/util.h> // for KiROUND
|
||||
|
@ -197,7 +197,7 @@
|
||||
|
||||
#include <eda_base_frame.h>
|
||||
#include <fill_type.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <convert_basic_shapes_to_polygon.h>
|
||||
#include <math/util.h> // for KiROUND
|
||||
#include <trigo.h>
|
||||
|
@ -94,7 +94,7 @@
|
||||
#include <base64.h>
|
||||
#include <eda_base_frame.h>
|
||||
#include <eda_rect.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <macros.h>
|
||||
#include <trigo.h>
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "altium_parser_utils.h"
|
||||
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <lib_id.h>
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <lib_id.h>
|
||||
|
||||
#include <iostream>
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include <plugins/eagle/eagle_parser.h>
|
||||
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <richio.h>
|
||||
#include <wx/log.h>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <confirm.h>
|
||||
#include <core/arraydim.h>
|
||||
#include <fp_lib_table.h>
|
||||
#include <kicad_string.h>
|
||||
#include <string_utils.h>
|
||||
#include <kiface_ids.h>
|
||||
#include <kiway.h>
|
||||
#include <macros.h>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user