JavaXT

string Class

Used to provide functionality similar to Microsoft VB String Class

Constructors

There are no constructors. You can call the methods directly.

Methods

cdbl( String d ) returns double
Used to convert a string to a double.
cint( String str ) returns int
Used to convert a string to an int. Rounds to the nearest int.
cint( Double d ) returns int
Used to convert a double to an int. Rounds the double to the nearest int.
contains( String str, String ch ) returns boolean
contains( String str, String ch, boolean IgnoreCase ) returns boolean
cstr( int i ) returns String
Used to convert an int to a string.
cstr( double d ) returns String
hasUpperCase( String str ) returns boolean
Used to determine whether the string contains upper-case letters.
InStr( String str, String ch ) returns int
instr( String str, String ch ) returns int
instrRev( String str, String ch ) returns int
isNumeric( String str ) returns boolean
isPunctuation( String str ) returns boolean
Used to determine whether the string ends with a punctuation
isUpperCase( String str ) returns boolean
Used to determine whether the string starts with a capital letter
Lcase( String str ) returns String
lcase( String str ) returns String
Left( String str, int n ) returns String
Returns characters on the left side of a string
left( String str, int n ) returns String
Len( String str ) returns int
Returns the length of a string
len( String str ) returns int
LTrim( String str ) returns String
Mid( String Target, int Start, int Length ) returns String
Replace( String str, String target, String replacement ) returns String
replace( String str, String target, String replacement ) returns String
Replace( String str, String target, String replacement, boolean IgnoreCase ) returns String
replace( String str, String target, String replacement, boolean IgnoreCase ) returns String
Right( String str, int n ) returns String
Returns characters on the right side of a string
right( String str, int n ) returns String
round( double value, int decimalPlace ) returns double
RTrim( String str ) returns String
Split( String str, String ch ) returns String[]
split( String str, String ch ) returns String[]
toBoolean( String s ) returns boolean
Used to convert an int to a string.
toDouble( String d ) returns double
Used to convert a string to a double.
toInt( String d ) returns int
Used to convert a string to an int. Rounds to the nearest int.
toInt( double d ) returns int
Used to convert a double to an int. Rounds the double to the nearest int.
toString( int i ) returns String
Used to convert an int to a string.
toString( double d ) returns String
Trim( String str ) returns String
trim( String str ) returns String
Ucase( String str ) returns String
ucase( String str ) returns String
UpdateCase( String str ) returns String