Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
58fe352f
Commit
58fe352f
authored
Oct 18, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/StringUtil: rename strchug_fast_c() to strchug_fast()
Overload the name.
parent
b105093d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
9 deletions
+6
-9
PlaylistDatabase.cxx
src/PlaylistDatabase.cxx
+1
-1
SongSave.cxx
src/SongSave.cxx
+1
-1
ExtM3uPlaylistPlugin.cxx
src/playlist/ExtM3uPlaylistPlugin.cxx
+1
-1
StringUtil.cxx
src/util/StringUtil.cxx
+1
-1
StringUtil.hxx
src/util/StringUtil.hxx
+2
-5
No files found.
src/PlaylistDatabase.cxx
View file @
58fe352f
...
...
@@ -59,7 +59,7 @@ playlist_metadata_load(TextFile &file, PlaylistVector &pv, const char *name,
}
*
colon
++
=
0
;
value
=
strchug_fast
_c
(
colon
);
value
=
strchug_fast
(
colon
);
if
(
strcmp
(
line
,
"mtime"
)
==
0
)
pm
.
mtime
=
strtol
(
value
,
nullptr
,
10
);
...
...
src/SongSave.cxx
View file @
58fe352f
...
...
@@ -78,7 +78,7 @@ song_load(TextFile &file, Directory *parent, const char *uri,
}
*
colon
++
=
0
;
value
=
strchug_fast
_c
(
colon
);
value
=
strchug_fast
(
colon
);
if
((
type
=
tag_name_parse
(
line
))
!=
TAG_NUM_OF_ITEM_TYPES
)
{
tag
.
AddItem
(
type
,
value
);
...
...
src/playlist/ExtM3uPlaylistPlugin.cxx
View file @
58fe352f
...
...
@@ -85,7 +85,7 @@ extm3u_parse_tag(const char *line)
/* 0 means unknown duration */
duration
=
0
;
name
=
strchug_fast
_c
(
endptr
+
1
);
name
=
strchug_fast
(
endptr
+
1
);
if
(
*
name
==
0
&&
duration
==
0
)
/* no information available; don't allocate a tag
object */
...
...
src/util/StringUtil.cxx
View file @
58fe352f
...
...
@@ -24,7 +24,7 @@
#include <assert.h>
const
char
*
strchug_fast
_c
(
const
char
*
p
)
strchug_fast
(
const
char
*
p
)
{
while
(
*
p
!=
0
&&
g_ascii_isspace
(
*
p
))
++
p
;
...
...
src/util/StringUtil.hxx
View file @
58fe352f
...
...
@@ -31,16 +31,13 @@
*/
gcc_pure
const
char
*
strchug_fast
_c
(
const
char
*
p
);
strchug_fast
(
const
char
*
p
);
/**
* Same as strchug_fast_c(), but works with a writable pointer.
*/
gcc_pure
static
inline
char
*
strchug_fast
(
char
*
p
)
{
return
const_cast
<
char
*>
(
strchug_fast
_c
(
p
));
return
const_cast
<
char
*>
(
strchug_fast
((
const
char
*
)
p
));
}
/**
...
...
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