Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
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
ESP32-audioI2S
Commits
dc39c37b
Unverified
Commit
dc39c37b
authored
Nov 26, 2023
by
Wolle
Committed by
GitHub
Nov 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
little fix in endsWith()
has no effect yet
parent
8efe3109
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/Audio.cpp
src/Audio.cpp
+2
-2
src/Audio.h
src/Audio.h
+9
-9
No files found.
src/Audio.cpp
View file @
dc39c37b
...
...
@@ -5,8 +5,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.7
p
* Updated on: Nov
12
.2023
* Version 3.0.7
q
* Updated on: Nov
26
.2023
* Author: Wolle (schreibfaul1)
*
*/
...
...
src/Audio.h
View file @
dc39c37b
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.7
p
* Updated on: Nov
12
.2023
* Version 3.0.7
q
* Updated on: Nov
26
.2023
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -288,14 +288,14 @@ private:
return
true
;
}
bool
endsWith
(
const
char
*
base
,
const
char
*
str
)
{
//fb
i
nt
slen
=
strlen
(
str
)
-
1
;
const
char
*
p
=
base
+
strlen
(
base
)
-
1
;
while
(
p
>
base
&&
isspace
(
*
p
))
p
--
;
// rtrim
bool
endsWith
(
const
char
*
base
,
const
char
*
searchString
)
{
int32_t
slen
=
strlen
(
searchString
);
i
f
(
slen
==
0
)
return
false
;
const
char
*
p
=
base
+
strlen
(
base
);
//
while(p > base && isspace(*p)) p--; // rtrim
p
-=
slen
;
if
(
p
<
base
)
return
false
;
return
(
strncmp
(
p
,
s
tr
,
slen
)
==
0
);
if
(
p
<
base
)
return
false
;
return
(
strncmp
(
p
,
s
earchString
,
slen
)
==
0
);
}
int
indexOf
(
const
char
*
base
,
const
char
*
str
,
int
startIndex
=
0
)
{
...
...
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