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
705b3c6b
Commit
705b3c6b
authored
Dec 26, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/ASCII: fix indent
parent
6b4ac669
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ASCII.hxx
src/util/ASCII.hxx
+10
-10
No files found.
src/util/ASCII.hxx
View file @
705b3c6b
...
...
@@ -43,24 +43,24 @@ gcc_pure gcc_nonnull_all
static
inline
bool
StringEqualsCaseASCII
(
const
char
*
a
,
const
char
*
b
)
{
assert
(
a
!=
nullptr
);
assert
(
b
!=
nullptr
);
assert
(
a
!=
nullptr
);
assert
(
b
!=
nullptr
);
/* note: strcasecmp() depends on the locale, but for ASCII-only
strings, it's safe to use */
return
strcasecmp
(
a
,
b
)
==
0
;
/* note: strcasecmp() depends on the locale, but for ASCII-only
strings, it's safe to use */
return
strcasecmp
(
a
,
b
)
==
0
;
}
gcc_pure
gcc_nonnull_all
static
inline
bool
StringEqualsCaseASCII
(
const
char
*
a
,
const
char
*
b
,
size_t
n
)
{
assert
(
a
!=
nullptr
);
assert
(
b
!=
nullptr
);
assert
(
a
!=
nullptr
);
assert
(
b
!=
nullptr
);
/* note: strcasecmp() depends on the locale, but for ASCII-only
strings, it's safe to use */
return
strncasecmp
(
a
,
b
,
n
)
==
0
;
/* note: strcasecmp() depends on the locale, but for ASCII-only
strings, it's safe to use */
return
strncasecmp
(
a
,
b
,
n
)
==
0
;
}
#endif
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