C# Класс CyrusBuilt.MonoPi.StringUtils

Static string utility methods.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DEFAULT_PAD_CHAR Char

Открытые методы

Метод Описание
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.

Описание методов

Create() публичный статический Метод

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. ///
Результат String

Create() публичный статический Метод

Creates a string of the specified length.
public static Create ( Int32 length ) : String
length System.Int32 /// The length of the string to create. ///
Результат String

Create() публичный статический Метод

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. ///
Результат String

Pad() публичный статический Метод

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. ///
Результат String

Pad() публичный статический Метод

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. ///
Результат String

Pad() публичный статический Метод

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. ///
Результат String

PadCenter() публичный статический Метод

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. ///
Результат String

PadCenter() публичный статический Метод

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. ///
Результат String

PadLeft() публичный статический Метод

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. ///
Результат String

PadLeft() публичный статический Метод

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. ///
Результат String

PadLeft() публичный статический Метод

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. ///
Результат String

PadRight() публичный статический Метод

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. ///
Результат String

PadRight() публичный статический Метод

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. ///
Результат String

PadRight() публичный статический Метод

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. ///
Результат String

Описание свойств

DEFAULT_PAD_CHAR публичное статическое свойство

The default padding character.
public static Char DEFAULT_PAD_CHAR
Результат Char