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:
twanvl
2006-10-19 12:31:12 +00:00
parent 86e7235e79
commit 5e1125c26e
2 changed files with 61 additions and 46 deletions
+12 -7
View File
@@ -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