util/String{Compare,API}: add more "noexcept"
This commit is contained in:
@@ -140,7 +140,7 @@ StringIsEqual(const char *a, const char *b, size_t length) noexcept
|
|||||||
*/
|
*/
|
||||||
gcc_malloc gcc_nonnull_all
|
gcc_malloc gcc_nonnull_all
|
||||||
static inline char *
|
static inline char *
|
||||||
DuplicateString(const char *p)
|
DuplicateString(const char *p) noexcept
|
||||||
{
|
{
|
||||||
return strdup(p);
|
return strdup(p);
|
||||||
}
|
}
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
StringIsEmpty(const char *string)
|
StringIsEmpty(const char *string) noexcept
|
||||||
{
|
{
|
||||||
return *string == 0;
|
return *string == 0;
|
||||||
}
|
}
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
StringIsEmpty(const wchar_t *string)
|
StringIsEmpty(const wchar_t *string) noexcept
|
||||||
{
|
{
|
||||||
return *string == 0;
|
return *string == 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user