C# 클래스 nHydrate.Generator.Common.Util.StringHelper

파일 보기 프로젝트 열기: nHydrate/nHydrate

공개 메소드들

메소드 설명
ByteArrayToHexString ( byte bytes ) : string
ByteArrayToString ( byte byteArray ) : string
ByteArrayToString ( byte byteArray, Encoding encoder ) : string
ByteArrayToString ( byte byteArray, int length ) : string
CamelCaseToDatabase ( string camelCase ) : string
ConvertTextToSingleLineCodeString ( string text ) : string

Convert the specified text to a single line text

ConvertTextToSingleLineCodeString ( string text, bool convertBreaks ) : string

Convert the specified text to a single line text

DatabaseNameToCamelCase ( string databaseName ) : string
DatabaseNameToPascalCase ( string databaseName ) : string
EnsureDirectorySeperatorAtEnd ( string directory ) : string
FirstCharToLower ( string inputString ) : string
FirstCharToUpper ( string inputString ) : string
GuidTryParse ( string s, System.Guid &result ) : bool
LineBreakCode ( StringBuilder sb, string text, string prepend ) : void

Given text prepend the specified prefix and add each line to a string builder

MakeValidCamelCaseVariableName ( string inputString ) : string
MakeValidDatabaseCaseVariableName ( string inputString ) : string
MakeValidPascalCaseVariableName ( string inputString ) : string
Match ( object s1, string s2, bool ignoreCase ) : bool
Match ( string s1, string s2 ) : bool
Match ( string s1, string s2, bool ignoreCase ) : bool
MemoryStreamToString ( MemoryStream memStream ) : String
PascalCaseToDatabase ( string pascalCase ) : string
StringReplace ( string text, string oldValue, string newValue ) : string

Case Insensitive String Replace

StringToByteArray ( string str ) : Byte[]
StringToMemoryStream ( string str ) : MemoryStream
WriteGeneratedCommentSection ( int tabCount, StringBuilder writer, string text ) : void

Take the specified text and break it into lines and write it as a C# comment

비공개 메소드들

메소드 설명
ReplaceWithUpper ( Match m ) : string
StringHelper ( ) : System

메소드 상세

ByteArrayToHexString() 공개 정적인 메소드

public static ByteArrayToHexString ( byte bytes ) : string
bytes byte
리턴 string

ByteArrayToString() 공개 정적인 메소드

public static ByteArrayToString ( byte byteArray ) : string
byteArray byte
리턴 string

ByteArrayToString() 공개 정적인 메소드

public static ByteArrayToString ( byte byteArray, Encoding encoder ) : string
byteArray byte
encoder System.Text.Encoding
리턴 string

ByteArrayToString() 공개 정적인 메소드

public static ByteArrayToString ( byte byteArray, int length ) : string
byteArray byte
length int
리턴 string

CamelCaseToDatabase() 공개 정적인 메소드

public static CamelCaseToDatabase ( string camelCase ) : string
camelCase string
리턴 string

ConvertTextToSingleLineCodeString() 공개 정적인 메소드

Convert the specified text to a single line text
public static ConvertTextToSingleLineCodeString ( string text ) : string
text string
리턴 string

ConvertTextToSingleLineCodeString() 공개 정적인 메소드

Convert the specified text to a single line text
public static ConvertTextToSingleLineCodeString ( string text, bool convertBreaks ) : string
text string
convertBreaks bool
리턴 string

DatabaseNameToCamelCase() 공개 정적인 메소드

public static DatabaseNameToCamelCase ( string databaseName ) : string
databaseName string
리턴 string

DatabaseNameToPascalCase() 공개 정적인 메소드

public static DatabaseNameToPascalCase ( string databaseName ) : string
databaseName string
리턴 string

EnsureDirectorySeperatorAtEnd() 공개 정적인 메소드

public static EnsureDirectorySeperatorAtEnd ( string directory ) : string
directory string
리턴 string

FirstCharToLower() 공개 정적인 메소드

public static FirstCharToLower ( string inputString ) : string
inputString string
리턴 string

FirstCharToUpper() 공개 정적인 메소드

public static FirstCharToUpper ( string inputString ) : string
inputString string
리턴 string

GuidTryParse() 공개 정적인 메소드

public static GuidTryParse ( string s, System.Guid &result ) : bool
s string
result System.Guid
리턴 bool

LineBreakCode() 공개 정적인 메소드

Given text prepend the specified prefix and add each line to a string builder
public static LineBreakCode ( StringBuilder sb, string text, string prepend ) : void
sb StringBuilder The StringBuilder to which to add the processed lines
text string The text to break into lines
prepend string The text to prepend each line
리턴 void

MakeValidCamelCaseVariableName() 공개 정적인 메소드

public static MakeValidCamelCaseVariableName ( string inputString ) : string
inputString string
리턴 string

MakeValidDatabaseCaseVariableName() 공개 정적인 메소드

public static MakeValidDatabaseCaseVariableName ( string inputString ) : string
inputString string
리턴 string

MakeValidPascalCaseVariableName() 공개 정적인 메소드

public static MakeValidPascalCaseVariableName ( string inputString ) : string
inputString string
리턴 string

Match() 공개 정적인 메소드

public static Match ( object s1, string s2, bool ignoreCase ) : bool
s1 object
s2 string
ignoreCase bool
리턴 bool

Match() 공개 정적인 메소드

public static Match ( string s1, string s2 ) : bool
s1 string
s2 string
리턴 bool

Match() 공개 정적인 메소드

public static Match ( string s1, string s2, bool ignoreCase ) : bool
s1 string
s2 string
ignoreCase bool
리턴 bool

MemoryStreamToString() 공개 정적인 메소드

public static MemoryStreamToString ( MemoryStream memStream ) : String
memStream System.IO.MemoryStream
리턴 String

PascalCaseToDatabase() 공개 정적인 메소드

public static PascalCaseToDatabase ( string pascalCase ) : string
pascalCase string
리턴 string

StringReplace() 공개 정적인 메소드

Case Insensitive String Replace
public static StringReplace ( string text, string oldValue, string newValue ) : string
text string
oldValue string
newValue string
리턴 string

StringToByteArray() 공개 정적인 메소드

public static StringToByteArray ( string str ) : Byte[]
str string
리턴 Byte[]

StringToMemoryStream() 공개 정적인 메소드

public static StringToMemoryStream ( string str ) : MemoryStream
str string
리턴 System.IO.MemoryStream

WriteGeneratedCommentSection() 공개 정적인 메소드

Take the specified text and break it into lines and write it as a C# comment
public static WriteGeneratedCommentSection ( int tabCount, StringBuilder writer, string text ) : void
tabCount int The number of preceding tabs
writer StringBuilder The string builder to write the text
text string The text to process
리턴 void