util/ASCII: fix indent
This commit is contained in:
parent
6b4ac66962
commit
705b3c6b63
@ -43,24 +43,24 @@ gcc_pure gcc_nonnull_all
|
|||||||
static inline bool
|
static inline bool
|
||||||
StringEqualsCaseASCII(const char *a, const char *b)
|
StringEqualsCaseASCII(const char *a, const char *b)
|
||||||
{
|
{
|
||||||
assert(a != nullptr);
|
assert(a != nullptr);
|
||||||
assert(b != nullptr);
|
assert(b != nullptr);
|
||||||
|
|
||||||
/* note: strcasecmp() depends on the locale, but for ASCII-only
|
/* note: strcasecmp() depends on the locale, but for ASCII-only
|
||||||
strings, it's safe to use */
|
strings, it's safe to use */
|
||||||
return strcasecmp(a, b) == 0;
|
return strcasecmp(a, b) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
gcc_pure gcc_nonnull_all
|
gcc_pure gcc_nonnull_all
|
||||||
static inline bool
|
static inline bool
|
||||||
StringEqualsCaseASCII(const char *a, const char *b, size_t n)
|
StringEqualsCaseASCII(const char *a, const char *b, size_t n)
|
||||||
{
|
{
|
||||||
assert(a != nullptr);
|
assert(a != nullptr);
|
||||||
assert(b != nullptr);
|
assert(b != nullptr);
|
||||||
|
|
||||||
/* note: strcasecmp() depends on the locale, but for ASCII-only
|
/* note: strcasecmp() depends on the locale, but for ASCII-only
|
||||||
strings, it's safe to use */
|
strings, it's safe to use */
|
||||||
return strncasecmp(a, b, n) == 0;
|
return strncasecmp(a, b, n) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user