ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
string [2019/04/19 02:43] korshunstring [2019/04/19 02:46] korshun
Line 17: Line 17:
 Operator ''=='' only checks if string **numbers** are equal. It may mostly work and then stop working randomly, or when used with a string coming from a different ACS library. Operator ''=='' only checks if string **numbers** are equal. It may mostly work and then stop working randomly, or when used with a string coming from a different ACS library.
  
-To check if strings are equal, you need to compare their contents. ACSUtils provides an easy to use function to check if strings are equal:+To check if strings are equal, you need to compare their contents. ACSUtils provides an easy to use function for this, which returns true if two strings are equal:
  
 ''bool StrEquals(str a, str b)'' ''bool StrEquals(str a, str b)''
Line 29: Line 29:
 It's implemented using [[zdoom>StrICmp]]. It's implemented using [[zdoom>StrICmp]].
  
 +===== String functions =====
 +
 +==== StrIsEmpty ====
 +''bool StrIsEmpty(str s)''
 +
 +Returns true if the string is an empty string (''%%""%%'').
  
  
  
  
string.txt · Last modified: 2019/04/19 02:48 by korshun