From: <me...@us...> - 2010-01-15 14:50:30
|
Revision: 1649 http://openutils.svn.sourceforge.net/openutils/?rev=1649&view=rev Author: memila Date: 2010-01-15 14:50:20 +0000 (Fri, 15 Jan 2010) Log Message: ----------- comment added Modified Paths: -------------- trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/ElStringUtils.java trunk/openutils-elfunctions/src/main/resources/META-INF/stringutils.tld Modified: trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/ElStringUtils.java =================================================================== --- trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/ElStringUtils.java 2010-01-15 14:24:12 UTC (rev 1648) +++ trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/ElStringUtils.java 2010-01-15 14:50:20 UTC (rev 1649) @@ -120,7 +120,7 @@ } /** - * safely parse a long + * Parse a number, passed as String, and return his Long * @param value the string to parse * @return the parsed long, or <code>0L</code> if parse fails * @see {@link NumberUtils#toLong()} @@ -131,7 +131,7 @@ } /** - * safely parse a double, and return his closest rounding as a long + * Parse a number, passed as String, and return his closest rounding as a long (or 0L if parse fails) * @param value the string to parse * @return the closest long to the parsed double, or <code>0L</code> if parse fails * @see {@link Math#round(double)} @@ -147,7 +147,7 @@ } /** - * safely parse a double, and return his floor as a long + * Parse a double, passed as String, and return his floor as a long (or 0L if parse fails) * @param value the string to parse * @return the parsed double's floor as a long, or <code>0L</code> if parse fails * @see {@link Math#floor(double)} @@ -163,7 +163,7 @@ } /** - * safely parse a double, and return his ceil as a long + * Parse a double, passed as String, and return his ceil as a long (or 0L if parse fails) * @param value the string to parse * @return the parsed double's floor as a long, or <code>0L</code> if parse fails * @see {@link Math#ceil(double)} @@ -179,7 +179,7 @@ } /** - * Shorten a text + * Shorten a text with a number of lines and a number of chars per line to be displayed. Display ellipses the line is shortened. * @param text original text * @param lines number of lines * @param numOfCharsPerLine number of chars per line @@ -207,15 +207,6 @@ : text; } - /** - * strip xml and html tags - * @param text the text to strip - * @return the stripped text - */ - public static String stripTags(String text) - { - return text.replaceAll("\\<.*?>", ""); - } public static String urlencode(String string) { Modified: trunk/openutils-elfunctions/src/main/resources/META-INF/stringutils.tld =================================================================== --- trunk/openutils-elfunctions/src/main/resources/META-INF/stringutils.tld 2010-01-15 14:24:12 UTC (rev 1648) +++ trunk/openutils-elfunctions/src/main/resources/META-INF/stringutils.tld 2010-01-15 14:50:20 UTC (rev 1649) @@ -116,38 +116,36 @@ </function> <function> <name>shorten</name> + <description>Shorten a text with a number of lines and a number of chars per line to be displayed. Display ellipses the line is shortened.</description> <function-class>net.sourceforge.openutils.elfunctions.ElStringUtils</function-class> <function-signature>java.lang.String shorten(java.lang.String, int, int, java.lang.String)</function-signature> </function> <function> <name>toLong</name> + <description>Parse a number, passed as String, and return his Long</description> <function-class>net.sourceforge.openutils.elfunctions.ElStringUtils</function-class> <function-signature>java.lang.Long toLong(java.lang.String)</function-signature> </function> <function> <name>toRoundedLong</name> - <description>safely parse a double, and return his closest rounding as a long (or 0L if parse fails)</description> + <description>Parse a number, passed as String, and return his closest rounding as a long (or 0L if parse fails)</description> <function-class>net.sourceforge.openutils.elfunctions.ElStringUtils</function-class> <function-signature>java.lang.Long toRoundedLong(java.lang.String)</function-signature> </function> <function> <name>toFloorLong</name> - <description>safely parse a double, and return his floor as a long (or 0L if parse fails)</description> + <description>Parse a double, passed as String, and return his floor as a long (or 0L if parse fails)</description> <function-class>net.sourceforge.openutils.elfunctions.ElStringUtils</function-class> <function-signature>java.lang.Long toFloorLong(java.lang.String)</function-signature> </function> <function> <name>toCeilLong</name> - <description>safely parse a double, and return his ceil as a long (or 0L if parse fails)</description> + <description>Parse a double, passed as String, and return his ceil as a long (or 0L if parse fails)</description> <function-class>net.sourceforge.openutils.elfunctions.ElStringUtils</function-class> <function-signature>java.lang.Long toCeilLong(java.lang.String)</function-signature> </function> + <function> - <name>stripTags</name> - <function-class>net.sourceforge.openutils.elfunctions.ElStringUtils</function-class> - <function-signature>java.lang.String stripTags(java.lang.String)</function-signature> - </function> - <function> <name>urlencode</name> <function-class>net.sourceforge.openutils.elfunctions.ElStringUtils</function-class> <function-signature>java.lang.String urlencode(java.lang.String)</function-signature> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |