Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
new:string [2018/02/20 19:57] – korshun | new:string [2018/02/20 19:58] (current) – korshun |
---|
====== String functions ====== | ====== String functions ====== |
| |
Case-insensitive string functions use [[ctype|toupper and tolower]], which don't support non-ASCII characters. | Most case-insensitive string functions use [[ctype|toupper and tolower]], which don't support non-ASCII characters. |
| |
* ''bool StrIsEmpty(str s)'' -- returns true if S is an empty string (''""''). **Do not use with [[empty_string|invalid string ids.]]** | * ''bool StrIsEmpty(str s)'' -- returns true if S is an empty string (''""''). **Do not use with [[empty_string|invalid string ids.]]** |
* ''bool StrEquals(str a, str b)'' -- returns true if strings are equal. | * ''bool StrEquals(str a, str b)'' -- returns true if strings are equal. Wrapper for [[zdoom>StrCmp]]. |
* ''bool StrIEquals(str a, str b)'' returns true if strings are equal (case-insensitive). | * ''bool StrIEquals(str a, str b)'' returns true if strings are equal (case-insensitive). Wrapper for [[zdoom>StrICmp]]. |