Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
0e80ea66
Commit
0e80ea66
authored
Apr 20, 2016
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed extra whitespaces in WString.h
parent
6d6c9d36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cores/arduino/WString.h
cores/arduino/WString.h
+6
-6
No files found.
cores/arduino/WString.h
View file @
0e80ea66
...
...
@@ -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
);}
...
...
@@ -162,7 +162,7 @@ public:
{
getBytes
((
unsigned
char
*
)
buf
,
bufsize
,
index
);}
const
char
*
c_str
()
const
{
return
buffer
;
}
const
char
*
begin
()
{
return
c_str
();
}
const
char
*
end
()
{
return
c_str
()
+
length
();
}
const
char
*
end
()
{
return
c_str
()
+
length
();
}
// search
int
indexOf
(
char
ch
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment