org.sakaiproject.tool.assessment.util
Class StringParseUtils
java.lang.Object
org.sakaiproject.tool.assessment.util.StringParseUtils
public class StringParseUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringParseUtils
public StringParseUtils()
main
public static void main(String[] args)
simplifyString
public static String simplifyString(String s,
int max,
int min)
- Create an all lowercase version substituting "_" for non-alphanumeric with
trailing "_". Limits the length.
- Parameters:
s - the Stringmax - the max number of characters to be outputmin - the min number of characters to be outpu
- Returns:
getFirstNameFromName
public static String getFirstNameFromName(String name)
- utility.
- Parameters:
name - full name
- Returns:
- (hopefully) first name
getLastNameFromName
public static String getLastNameFromName(String name)
- utility.
- Parameters:
name - full name
- Returns:
- (hopefully) last name
Copyright © 2005-2013 Sakai Project. All Rights Reserved.