Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
37c256bf
Commit
37c256bf
authored
8 years ago
by
Cristian Maglie
Browse files
Options
Downloads
Patches
Plain Diff
Removed whitespaces in WString.h
parent
b527f114
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cores/arduino/WString.h
+5
-5
5 additions, 5 deletions
cores/arduino/WString.h
with
5 additions
and
5 deletions
cores/arduino/WString.h
+
5
−
5
View file @
37c256bf
...
...
@@ -81,7 +81,7 @@ public:
inline
unsigned
int
length
(
void
)
const
{
return
len
;}
// creates a copy of the assigned value. if the value is null or
// invalid, or if the memory allocation fails, the string will be
// invalid, or if the memory allocation fails, the string will be
// marked as invalid ("if (s)" will be false).
String
&
operator
=
(
const
String
&
rhs
);
String
&
operator
=
(
const
char
*
cstr
);
...
...
@@ -92,10 +92,10 @@ public:
#endif
// concatenate (works w/ built-in types)
// returns true on success, false on failure (in which case, the string
// is left unchanged). if the argument is null or invalid, the
// concatenation is considered unsucessful.
// is left unchanged). if the argument is null or invalid, the
// concatenation is considered unsucessful.
unsigned
char
concat
(
const
String
&
str
);
unsigned
char
concat
(
const
char
*
cstr
);
unsigned
char
concat
(
char
c
);
...
...
@@ -107,7 +107,7 @@ public:
unsigned
char
concat
(
float
num
);
unsigned
char
concat
(
double
num
);
unsigned
char
concat
(
const
__FlashStringHelper
*
str
);
// if there's not enough memory for the concatenated value, the string
// will be left unchanged (but this isn't signalled in any way)
String
&
operator
+=
(
const
String
&
rhs
)
{
concat
(
rhs
);
return
(
*
this
);}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment