Skip to content

Commit 46acafa

Browse files
committed
refactor: rename WString to String
First step for Arduino Core alignement Signed-off-by: Frederic Pillon <[email protected]>
1 parent 641f3d8 commit 46acafa

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Diff for: cores/arduino/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ add_library(core_bin STATIC EXCLUDE_FROM_ALL
6868
stm32/usb/usbd_ep_conf.c
6969
stm32/usb/usbd_if.c
7070
Stream.cpp
71+
String.cpp
7172
Tone.cpp
7273
USBSerial.cpp
7374
VirtIOSerial.cpp
@@ -79,7 +80,6 @@ add_library(core_bin STATIC EXCLUDE_FROM_ALL
7980
wiring_time.c
8081
WMath.cpp
8182
WSerial.cpp
82-
WString.cpp
8383
)
8484
target_link_libraries(core_bin PUBLIC core_usage)
8585

Diff for: cores/arduino/IPAddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <stdint.h>
2424
#include "Printable.h"
25-
#include "WString.h"
25+
#include "String.h"
2626

2727
// A class to make it easier to handle and pass around IP addresses
2828

Diff for: cores/arduino/Print.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <stdio.h> // for size_t
2424
#include <stdarg.h> // for printf
2525

26-
#include "WString.h"
26+
#include "String.h"
2727
#include "Printable.h"
2828

2929
#define DEC 10

Diff for: cores/arduino/WString.cpp renamed to cores/arduino/String.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
WString.cpp - String library for Wiring & Arduino
2+
String.cpp - String library for Wiring & Arduino
33
...mostly rewritten by Paul Stoffregen...
44
Copyright (c) 2009-10 Hernando Barragan. All rights reserved.
55
Copyright 2011, Paul Stoffregen, [email protected]
@@ -19,7 +19,7 @@
1919
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2020
*/
2121

22-
#include "WString.h"
22+
#include "String.h"
2323
#include "itoa.h"
2424
#include "avr/dtostrf.h"
2525

Diff for: cores/arduino/WString.h renamed to cores/arduino/String.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
WString.h - String library for Wiring & Arduino
2+
String.h - String library for Wiring & Arduino
33
...mostly rewritten by Paul Stoffregen...
44
Copyright (c) 2009-10 Hernando Barragan. All right reserved.
55
Copyright 2011, Paul Stoffregen, [email protected]

Diff for: cores/arduino/wiring.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141

4242
#ifdef __cplusplus
4343
#include "HardwareTimer.h"
44+
#include "String.h"
4445
#include "Tone.h"
4546
#include "WCharacter.h"
4647
#include "WInterrupts.h"
4748
#include "WMath.h"
4849
#include "WSerial.h"
49-
#include "WString.h"
5050
#endif // __cplusplus
5151

5252

0 commit comments

Comments
 (0)