Class TString

java.lang.Object
  |
  +--TObject
        |
        +--TString

public class TString
extends TObject

Type String: Class TString represents character strings. All string literals in NOOL programs, such as "abc", are implemented as instances of this class.

Since:
NOT YET RELEASED

Field Summary
 java.lang.String string
          The caracter string.
 
Constructor Summary
TString()
          Instanciates a new Type String.
TString(java.lang.String[] array)
          Instanciates a new Type String.
 
Method Summary
 void insert(java.lang.String string, int position)
          Inserts another string into the string.
 java.lang.String[] toCharArray()
          Returns a char array representation of the string.
 java.lang.String toLowerCase()
          Returns a copy of the string in lowercase.
 java.lang.String toUpperCase()
          Returns a copy of the string in uppercase.
 java.lang.String trim()
          Returns a copy of the string whit the white spaces of both ends removed.
 
Methods inherited from class TObject
clone, Destroy, equals, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

string

public java.lang.String string
The caracter string.

Constructor Detail

TString

public TString()
Instanciates a new Type String.

Since:
NOT YET RELEASED

TString

public TString(java.lang.String[] array)
Instanciates a new Type String.

Parameters:
array - The string array used to form the string.
Since:
NOT YET RELEASED
Method Detail

toCharArray

public java.lang.String[] toCharArray()
Returns a char array representation of the string.

Returns:
array: The char array formed by the string.
Since:
NOT YET RELEASED

toLowerCase

public java.lang.String toLowerCase()
Returns a copy of the string in lowercase.

Returns:
string: The string in lowercase.
Since:
NOT YET RELEASED

toUpperCase

public java.lang.String toUpperCase()
Returns a copy of the string in uppercase.

Returns:
string: The string in uppercase.
Since:
NOT YET RELEASED

trim

public java.lang.String trim()
Returns a copy of the string whit the white spaces of both ends removed.

Returns:
string: The trimmed string.
Since:
NOT YET RELEASED

insert

public void insert(java.lang.String string,
                   int position)
Inserts another string into the string.

Parameters:
string - The string to insert.
position - The position where to insert the string.
Since:
NOT YET RELEASED