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
b778fb38
Commit
b778fb38
authored
Jul 18, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/StringAPI: add raw strcmp() wrapper
parent
32290d5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
StringAPI.hxx
src/util/StringAPI.hxx
+7
-0
WStringAPI.hxx
src/util/WStringAPI.hxx
+7
-0
No files found.
src/util/StringAPI.hxx
View file @
b778fb38
...
...
@@ -127,6 +127,13 @@ UnsafeCopyStringP(char *dest, const char *src) noexcept
#endif
}
gcc_pure
gcc_nonnull_all
static
inline
int
StringCompare
(
const
char
*
a
,
const
char
*
b
)
noexcept
{
return
strcmp
(
a
,
b
);
}
/**
* Checks whether #a and #b are equal.
*/
...
...
src/util/WStringAPI.hxx
View file @
b778fb38
...
...
@@ -120,6 +120,13 @@ UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept
#endif
}
gcc_pure
gcc_nonnull_all
static
inline
int
StringCompare
(
const
wchar_t
*
a
,
const
wchar_t
*
b
)
noexcept
{
return
wcscmp
(
a
,
b
);
}
/**
* Checks whether str1 and str2 are equal.
* @param str1 String 1
...
...
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