sealed
class string
An immutable array of characters.
public
string
.Constructor(
value
)
delegate
int
CompareDelegate(
char
v1
,
char
v2
)
A type that represents a reference to a method with a parameter list and return type
delegate
CompareFieldDelegate(
char
value
)
A type that represents a reference to a method with a parameter list and return type
delegate
bool
FindDelegate(
char
value
)
A type that represents a reference to a method with a parameter list and return type
public
string
[]
string
.Split(
delimiter
,
StringSplitOptions
options
=
null
)
Split string at delimiter
public
string
.FindString(
string
value
,
int
maxcount
=
null
)
Returns a range list of matching strings
public
string
string
.Compliment
Returns the genetic compliment of the sequence
public
int
string
.IndexOf(
string
value
)
Returns the index of the start of a matching string segment or -1
public
bool
string
.StartsWith(
string
value
)
Returns true if the string starts with value
public
bool
string
.EndsWith(
string
value
)
Returns true if the string ends with value
public
char
string
.First
Returns the first char in a string or null if empty
public
char
string
.Last
Returns the last char in a string or null if empty
public
string
string
.Replace(
find
,
replace
)
Returns a new string with values replaced
public
static
string
string
.Normalize(
value
,
NormalizationForms
normalize
=
null
)
Returns a string with an optional normalized binary representation
public
static
int
string
.CompareIgnoreCase(
x
,
y
)
Case insensitive string comparison
public
static
string
string
.ToQuoted(
value
)
Returns a nytril compatible quoted string
public
static
string
string
.ToLower(
value
)
Returns a lowercase version of value
public
static
string
string
.ToUpper(
value
)
Returns an uppercase version of value
public
static
string
string
.Convert(
value
)
Convert value into type string, null if not successful
public
virtual
object
.GetLayoutTip
Return a layout for the hint popup
public
virtual
object
.GetLayoutSpan
Return a layout inside a span
public
virtual
object
.GetLayoutBlock
Return a layout inside a block
public
virtual
object
.GetSourceReference
Return a source reference for this object
public
virtual
void
object
.GetTexSource(
source
)
LaTeX source code for this object
public
virtual
Icon
object
.GetIcon
Return a icon for this object
public
virtual
int
object
.Compare(
value
)
Compares this object with another and returns (-1, 0, or 1)
readonly
Example
=
ListBlock
{
"Plain string"
;
"String with \t tab character and \n linefeed character. "
;
"String with \u0009 (hex unicode tab) character"
;
ArgString
(
"string"
, 2);
"The answer is
{0}
. "
(42);
"Back-"
"to-"
"back strings"
;
"Multiply-"
*
5;
};
•
Plain string
•
String with
tab character and
linefeed character.
•
String with
(hex unicode tab) character
•
This is a string with 2 arguments
•
The answer is 42.
•
Back-to-back strings
•
Multiply-Multiply-Multiply-Multiply-Multiply-