C# Class CyrusBuilt.MonoPi.StringUtils

Static string utility methods.
Afficher le fichier Open project: cyrusbuilt/MonoPi

Méthodes publiques

Свойство Type Description
DEFAULT_PAD_CHAR Char

Méthodes publiques

Méthode Description
Create ( Char c, Int32 length ) : String

Creates a string from the specified character.

Create ( Int32 length ) : String

Creates a string of the specified length.

Create ( String s, Int32 length ) : String

Creates a string from the specified string.

Pad ( String data, Char pad, Int32 length ) : String

Pads the specified string on both sides.

Pad ( String data, Int32 length ) : String

Pads the specified string on both sides.

Pad ( String data, String pad, Int32 length ) : String

Pads the specified string on both sides.

PadCenter ( String data, Char c, Int32 length ) : String

Pads the center of the specified string.

PadCenter ( String data, Int32 length ) : String

Pads the center of the specified string.

PadLeft ( String data, Char pad, Int32 length ) : String

Pads the left side of the specified string.

PadLeft ( String data, Int32 length ) : String

Pads the left side of the specified string.

PadLeft ( String data, String pad, Int32 length ) : String

Pads the left side of the specified string.

PadRight ( String data, Char pad, Int32 length ) : String

Pads the right side of the specified string.

PadRight ( String data, Int32 length ) : String

Pads the right side of the specified string.

PadRight ( String data, String pad, Int32 length ) : String

Pads the right side of the specified string.

Method Details

Create() public static méthode

Creates a string from the specified character.
public static Create ( Char c, Int32 length ) : String
c Char /// The character to create the string from. ///
length System.Int32 /// The number of instances of the specified character /// to construct the string from. ///
Résultat String

Create() public static méthode

Creates a string of the specified length.
public static Create ( Int32 length ) : String
length System.Int32 /// The length of the string to create. ///
Résultat String

Create() public static méthode

Creates a string from the specified string.
public static Create ( String s, Int32 length ) : String
s String /// The string to create the string from. ///
length System.Int32 /// The number of instances of the specified string /// to construct the string from. ///
Résultat String

Pad() public static méthode

Pads the specified string on both sides.
public static Pad ( String data, Char pad, Int32 length ) : String
data String /// The string to pad. ///
pad Char /// The character to pad the string with. ///
length System.Int32 /// The number of characters to pad on both sides. ///
Résultat String

Pad() public static méthode

Pads the specified string on both sides.
public static Pad ( String data, Int32 length ) : String
data String /// The string to pad. ///
length System.Int32 /// The number of characters to pad on both sides. ///
Résultat String

Pad() public static méthode

Pads the specified string on both sides.
public static Pad ( String data, String pad, Int32 length ) : String
data String /// The string to pad. ///
pad String /// The string to pad the string with. ///
length System.Int32 /// The number of strings to pad on both sides. ///
Résultat String

PadCenter() public static méthode

Pads the center of the specified string.
public static PadCenter ( String data, Char c, Int32 length ) : String
data String /// The string to pad. ///
c Char /// The character to pad the center with. ///
length System.Int32 /// The number of characters to pad. ///
Résultat String

PadCenter() public static méthode

Pads the center of the specified string.
public static PadCenter ( String data, Int32 length ) : String
data String /// The string to pad. ///
length System.Int32 /// The number of characters to pad. ///
Résultat String

PadLeft() public static méthode

Pads the left side of the specified string.
public static PadLeft ( String data, Char pad, Int32 length ) : String
data String /// The string to pad. ///
pad Char /// The character to pad the specified string with. ///
length System.Int32 /// The number of pad characters to inject. ///
Résultat String

PadLeft() public static méthode

Pads the left side of the specified string.
public static PadLeft ( String data, Int32 length ) : String
data String /// The string to pad. ///
length System.Int32 /// The number of pad characters to inject. ///
Résultat String

PadLeft() public static méthode

Pads the left side of the specified string.
public static PadLeft ( String data, String pad, Int32 length ) : String
data String /// The string to pad. ///
pad String /// The string to pad the specified string with. ///
length System.Int32 /// The number of pad characters to inject. ///
Résultat String

PadRight() public static méthode

Pads the right side of the specified string.
public static PadRight ( String data, Char pad, Int32 length ) : String
data String /// The string to pad. ///
pad Char /// The character to pad the string with. ///
length System.Int32 /// The number of padding characters to use. ///
Résultat String

PadRight() public static méthode

Pads the right side of the specified string.
public static PadRight ( String data, Int32 length ) : String
data String /// The string to pad. ///
length System.Int32 /// The number of padding characters to use. ///
Résultat String

PadRight() public static méthode

Pads the right side of the specified string.
public static PadRight ( String data, String pad, Int32 length ) : String
data String /// The string to pad. ///
pad String /// The string to pad the string with. ///
length System.Int32 /// The number of padding characters to use. ///
Résultat String

Property Details

DEFAULT_PAD_CHAR public_oe static_oe property

The default padding character.
public static Char DEFAULT_PAD_CHAR
Résultat Char