mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Simplified compilation of 'assert' pseudo function;
Added remove_duplicates flag to sort_list function; Fixed documentation of <size:> tag git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1028 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+7
-1
@@ -162,12 +162,18 @@ String remove_shortcut(const String&);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Comparing / finding
|
||||
|
||||
/// Compare two strings, is the first less than the first?
|
||||
/// Compare two strings
|
||||
/** Uses a smart comparison algorithm that understands numbers.
|
||||
* The comparison is case insensitive.
|
||||
* Doesn't handle leading zeros.
|
||||
*
|
||||
* Returns -1 if a < b, 0 if they are equal, and 1 if a > b
|
||||
*/
|
||||
int smart_compare(const String&, const String&);
|
||||
/// Compare two strings, is the first less than the first?
|
||||
bool smart_less(const String&, const String&);
|
||||
/// Compare two strings for equality
|
||||
bool smart_equal(const String&, const String&);
|
||||
|
||||
/// Return whether str starts with start
|
||||
/** starts_with(a,b) == is_substr(a,0,b) */
|
||||
|
||||
Reference in New Issue
Block a user