mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Added dStrIsEmpty and replaced some incorrect string comparisons.
This commit is contained in:
parent
9396ae7176
commit
03f71a78c0
2 changed files with 7 additions and 2 deletions
|
|
@ -59,6 +59,11 @@ inline S32 dStrcmp(const char *str1, const char *str2)
|
|||
return strcmp(str1, str2);
|
||||
}
|
||||
|
||||
inline bool dStrIsEmpty(const char *src)
|
||||
{
|
||||
return src == 0 || !dStrcmp(src, "");
|
||||
}
|
||||
|
||||
inline S32 dStrncmp(const char *str1, const char *str2, dsize_t len)
|
||||
{
|
||||
return strncmp(str1, str2, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue