mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
added starts_with
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@28 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+12
-7
@@ -81,13 +81,6 @@ String trim(const String&);
|
||||
/// Remove whitespace from the start of a string
|
||||
String trim_left(const String&);
|
||||
|
||||
/// Compare two strings, is the first less than the first?
|
||||
/** Uses a smart comparison algorithm that understands numbers.
|
||||
* The comparison is case insensitive.
|
||||
* Doesn't handle leading zeros.
|
||||
*/
|
||||
bool smart_less(const String&, const String&);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Words
|
||||
|
||||
/// Returns the last word in a string
|
||||
@@ -118,5 +111,17 @@ String cannocial_name_form(const String&);
|
||||
*/
|
||||
String singular_form(const String&);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Comparing / finding
|
||||
|
||||
/// Compare two strings, is the first less than the first?
|
||||
/** Uses a smart comparison algorithm that understands numbers.
|
||||
* The comparison is case insensitive.
|
||||
* Doesn't handle leading zeros.
|
||||
*/
|
||||
bool smart_less(const String&, const String&);
|
||||
|
||||
/// Return whether str starts with start
|
||||
bool starts_with(const String& str, const String& start);
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user