C# 클래스 CyrusBuilt.MonoPi.StringUtils

Static string utility methods.
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 프로퍼티들

프로퍼티 타입 설명
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