C# 클래스 RocksmithToolkitLib.Extensions.StringExtensions

파일 보기 프로젝트 열기: rscustom/rocksmith-custom-song-toolkit

공개 메소드들

메소드 설명
Capitalize ( this value ) : string

Capitalize the first character without changing the rest of the string

GetValidAcronym ( this value ) : string
GetValidAppIdSixDigits ( this value ) : string
GetValidAtaSpaceName ( this value ) : string

Gets a valid Artist, Title, Album (ATA) name with spaces

GetValidFileName ( this fileName ) : string
GetValidFilePath ( this value ) : string
GetValidInlayName ( this value, bool frets24 = false ) : string
GetValidKey ( this value, string songTitle = "" ) : string

Format string as valid DLCKey (aka SongKey), or ToneKey

GetValidPathName ( this pathName ) : string
GetValidShortFileName ( string artist, string title, string version, bool acronym = false ) : string

Standard short file name format for CDLC file names "{0}_{1}_{2}"

GetValidSortableName ( this value ) : string
GetValidTempo ( this value ) : string
GetValidVersion ( this value ) : string
GetValidYear ( this value ) : string
IsAppIdSixDigits ( this value ) : bool
IsFilePathLengthValid ( this filePath ) : bool
IsFilePathNameValid ( this filePath ) : bool
IsFilePathValid ( this filePath ) : bool
ReplaceAbbreviations ( this value ) : string
ReplaceDiacritics ( this value ) : string
ReplaceDiacriticsFast ( this value ) : string
ReplaceSpaceWith ( this value, string replacementValue = "_" ) : string

Replace white space with user choice of replacement or remove all together

ShortWordMover ( this value, bool undoIt = false ) : string

Moves short words like "The " from the begining of a string to the end ", The"

StripDiacritics ( this value ) : string
StripExcessWhiteSpace ( this value ) : string
StripIllegalXMLChars ( this filePath ) : System.Stream

Strips non-printable ASCII characters

StripLeadingNumbers ( this value ) : string
StripLeadingSpecialCharacters ( this value ) : string
StripNonAlpaNumeric ( this value ) : string
StripPlatformEndName ( this filePath ) : string
StripSpecialCharacters ( this value ) : string
ToNullTerminatedAscii ( this bytes ) : string
ToNullTerminatedUTF8 ( this bytes ) : string

비공개 메소드들

메소드 설명
ObsoleteGetValidName ( this value, bool allowSpace = false, bool allowStartsWithNumber = false, bool underscoreSpace = false, bool frets24 = false ) : string

메소드 상세

Capitalize() 공개 정적인 메소드

Capitalize the first character without changing the rest of the string
public static Capitalize ( this value ) : string
value this
리턴 string

GetValidAcronym() 공개 정적인 메소드

public static GetValidAcronym ( this value ) : string
value this
리턴 string

GetValidAppIdSixDigits() 공개 정적인 메소드

public static GetValidAppIdSixDigits ( this value ) : string
value this
리턴 string

GetValidAtaSpaceName() 공개 정적인 메소드

Gets a valid Artist, Title, Album (ATA) name with spaces
public static GetValidAtaSpaceName ( this value ) : string
value this
리턴 string

GetValidFileName() 공개 정적인 메소드

public static GetValidFileName ( this fileName ) : string
fileName this
리턴 string

GetValidFilePath() 공개 정적인 메소드

public static GetValidFilePath ( this value ) : string
value this
리턴 string

GetValidInlayName() 공개 정적인 메소드

public static GetValidInlayName ( this value, bool frets24 = false ) : string
value this
frets24 bool
리턴 string

GetValidKey() 공개 정적인 메소드

Format string as valid DLCKey (aka SongKey), or ToneKey
public static GetValidKey ( this value, string songTitle = "" ) : string
value this DLCKey or ToneKey for verification
songTitle string optional SongTitle varification comparison for DLCKey
리턴 string

GetValidPathName() 공개 정적인 메소드

public static GetValidPathName ( this pathName ) : string
pathName this
리턴 string

GetValidShortFileName() 공개 정적인 메소드

Standard short file name format for CDLC file names "{0}_{1}_{2}"
public static GetValidShortFileName ( string artist, string title, string version, bool acronym = false ) : string
artist string
title string
version string
acronym bool use artist acronym instead of full artist name
리턴 string

GetValidSortableName() 공개 정적인 메소드

public static GetValidSortableName ( this value ) : string
value this
리턴 string

GetValidTempo() 공개 정적인 메소드

public static GetValidTempo ( this value ) : string
value this
리턴 string

GetValidVersion() 공개 정적인 메소드

public static GetValidVersion ( this value ) : string
value this
리턴 string

GetValidYear() 공개 정적인 메소드

public static GetValidYear ( this value ) : string
value this
리턴 string

IsAppIdSixDigits() 공개 정적인 메소드

public static IsAppIdSixDigits ( this value ) : bool
value this
리턴 bool

IsFilePathLengthValid() 공개 정적인 메소드

public static IsFilePathLengthValid ( this filePath ) : bool
filePath this
리턴 bool

IsFilePathNameValid() 공개 정적인 메소드

public static IsFilePathNameValid ( this filePath ) : bool
filePath this
리턴 bool

IsFilePathValid() 공개 정적인 메소드

public static IsFilePathValid ( this filePath ) : bool
filePath this
리턴 bool

ReplaceAbbreviations() 공개 정적인 메소드

public static ReplaceAbbreviations ( this value ) : string
value this
리턴 string

ReplaceDiacritics() 공개 정적인 메소드

public static ReplaceDiacritics ( this value ) : string
value this
리턴 string

ReplaceDiacriticsFast() 공개 정적인 메소드

public static ReplaceDiacriticsFast ( this value ) : string
value this
리턴 string

ReplaceSpaceWith() 공개 정적인 메소드

Replace white space with user choice of replacement or remove all together
public static ReplaceSpaceWith ( this value, string replacementValue = "_" ) : string
value this
replacementValue string Default is underscore
리턴 string

ShortWordMover() 공개 정적인 메소드

Moves short words like "The " from the begining of a string to the end ", The"
public static ShortWordMover ( this value, bool undoIt = false ) : string
value this
undoIt bool Use to undo ShortWordMover strings
리턴 string

StripDiacritics() 공개 정적인 메소드

public static StripDiacritics ( this value ) : string
value this
리턴 string

StripExcessWhiteSpace() 공개 정적인 메소드

public static StripExcessWhiteSpace ( this value ) : string
value this
리턴 string

StripIllegalXMLChars() 공개 정적인 메소드

Strips non-printable ASCII characters
public static StripIllegalXMLChars ( this filePath ) : System.Stream
filePath this Full path to the File
리턴 System.Stream

StripLeadingNumbers() 공개 정적인 메소드

public static StripLeadingNumbers ( this value ) : string
value this
리턴 string

StripLeadingSpecialCharacters() 공개 정적인 메소드

public static StripLeadingSpecialCharacters ( this value ) : string
value this
리턴 string

StripNonAlpaNumeric() 공개 정적인 메소드

public static StripNonAlpaNumeric ( this value ) : string
value this
리턴 string

StripPlatformEndName() 공개 정적인 메소드

public static StripPlatformEndName ( this filePath ) : string
filePath this
리턴 string

StripSpecialCharacters() 공개 정적인 메소드

public static StripSpecialCharacters ( this value ) : string
value this
리턴 string

ToNullTerminatedAscii() 공개 정적인 메소드

public static ToNullTerminatedAscii ( this bytes ) : string
bytes this
리턴 string

ToNullTerminatedUTF8() 공개 정적인 메소드

public static ToNullTerminatedUTF8 ( this bytes ) : string
bytes this
리턴 string