Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

text::TStringUtils Class Reference

Class that performs miscellaneous changes on Strings. More...

List of all members.

Static Public Methods

List _tokenizeKeys (String yKEYS)
String _wrapString (String ySOURCE, int iMAX_LENGTH)
String _wrapString (String ySOURCE, int iMAX_LENGTH, char cLAST_CHAR)
String _wrapString (String ySOURCE, int iMAX_LENGTH, char cLAST_CHAR, String ySUFFIX)


Detailed Description

Class that performs miscellaneous changes on Strings.

Definition at line 35 of file TStringUtils.java.


Member Function Documentation

List text::TStringUtils::_tokenizeKeys String    yKEYS [inline, static]
 

Takes a string containing space-separated tokens and returns a list with them.

  • yKEYS The string to tokenize.
Returns:
The token list.

Definition at line 48 of file TStringUtils.java.

String text::TStringUtils::_wrapString String    ySOURCE,
int    iMAX_LENGTH,
char    cLAST_CHAR,
String    ySUFFIX
[inline, static]
 

The same as _wrapString (String, int, char) but appends a tail if the string was wrapped.

  • ySOURCE The string to be wrapped.
  • iMAX_LENGTH The max length of the resulting string.
  • cLAST_CHAR The last char of the resulting string.
  • ySUFFIX The string to append.
Returns:
The wrapped string.
See also:
_wrapString (String, int, char)

Definition at line 108 of file TStringUtils.java.

String text::TStringUtils::_wrapString String    ySOURCE,
int    iMAX_LENGTH,
char    cLAST_CHAR
[inline, static]
 

If string ySOURCE length is greater than iMAX_LENGTH then it wraps to the substring 0..I-1 where I is the index of the last ocurrence of cLAST_CHAR within. By default, an ellipsis is appended.

  • ySOURCE The string to be wrapped.
  • iMAX_LENGTH The maximum length of the resulting string.
  • cLAST_CHAR The last char of the resulting string.
Returns:
The wrapped string.

Definition at line 93 of file TStringUtils.java.

References text::TStringUtils::_wrapString().

String text::TStringUtils::_wrapString String    ySOURCE,
int    iMAX_LENGTH
[inline, static]
 

If string ySOURCE length is greater than iMAX_LENGTH then it wraps to the substring 0..I-1 where I is the index of the last ocurrence of an space ' ' within. By default, an ellipsis is appended.

  • ySOURCE The string to be wrapped.
  • iMAX_LENGTH The max length of the resulting string.
  • cLAST_CHAR The last char of the resulting string.
Returns:
The wrapped string.

Definition at line 79 of file TStringUtils.java.

Referenced by text::TStringUtils::_wrapString().


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:28 2003 for MPCL by doxygen1.2.18