C# Class RocksmithToolkitLib.Extensions.StringExtensions

Afficher le fichier Open project: rscustom/rocksmith-custom-song-toolkit

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ObsoleteGetValidName ( this value, bool allowSpace = false, bool allowStartsWithNumber = false, bool underscoreSpace = false, bool frets24 = false ) : string

Method Details

Capitalize() public static méthode

Capitalize the first character without changing the rest of the string
public static Capitalize ( this value ) : string
value this
Résultat string

GetValidAcronym() public static méthode

public static GetValidAcronym ( this value ) : string
value this
Résultat string

GetValidAppIdSixDigits() public static méthode

public static GetValidAppIdSixDigits ( this value ) : string
value this
Résultat string

GetValidAtaSpaceName() public static méthode

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

GetValidFileName() public static méthode

public static GetValidFileName ( this fileName ) : string
fileName this
Résultat string

GetValidFilePath() public static méthode

public static GetValidFilePath ( this value ) : string
value this
Résultat string

GetValidInlayName() public static méthode

public static GetValidInlayName ( this value, bool frets24 = false ) : string
value this
frets24 bool
Résultat string

GetValidKey() public static méthode

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
Résultat string

GetValidPathName() public static méthode

public static GetValidPathName ( this pathName ) : string
pathName this
Résultat string

GetValidShortFileName() public static méthode

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
Résultat string

GetValidSortableName() public static méthode

public static GetValidSortableName ( this value ) : string
value this
Résultat string

GetValidTempo() public static méthode

public static GetValidTempo ( this value ) : string
value this
Résultat string

GetValidVersion() public static méthode

public static GetValidVersion ( this value ) : string
value this
Résultat string

GetValidYear() public static méthode

public static GetValidYear ( this value ) : string
value this
Résultat string

IsAppIdSixDigits() public static méthode

public static IsAppIdSixDigits ( this value ) : bool
value this
Résultat bool

IsFilePathLengthValid() public static méthode

public static IsFilePathLengthValid ( this filePath ) : bool
filePath this
Résultat bool

IsFilePathNameValid() public static méthode

public static IsFilePathNameValid ( this filePath ) : bool
filePath this
Résultat bool

IsFilePathValid() public static méthode

public static IsFilePathValid ( this filePath ) : bool
filePath this
Résultat bool

ReplaceAbbreviations() public static méthode

public static ReplaceAbbreviations ( this value ) : string
value this
Résultat string

ReplaceDiacritics() public static méthode

public static ReplaceDiacritics ( this value ) : string
value this
Résultat string

ReplaceDiacriticsFast() public static méthode

public static ReplaceDiacriticsFast ( this value ) : string
value this
Résultat string

ReplaceSpaceWith() public static méthode

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
Résultat string

ShortWordMover() public static méthode

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
Résultat string

StripDiacritics() public static méthode

public static StripDiacritics ( this value ) : string
value this
Résultat string

StripExcessWhiteSpace() public static méthode

public static StripExcessWhiteSpace ( this value ) : string
value this
Résultat string

StripIllegalXMLChars() public static méthode

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

StripLeadingNumbers() public static méthode

public static StripLeadingNumbers ( this value ) : string
value this
Résultat string

StripLeadingSpecialCharacters() public static méthode

public static StripLeadingSpecialCharacters ( this value ) : string
value this
Résultat string

StripNonAlpaNumeric() public static méthode

public static StripNonAlpaNumeric ( this value ) : string
value this
Résultat string

StripPlatformEndName() public static méthode

public static StripPlatformEndName ( this filePath ) : string
filePath this
Résultat string

StripSpecialCharacters() public static méthode

public static StripSpecialCharacters ( this value ) : string
value this
Résultat string

ToNullTerminatedAscii() public static méthode

public static ToNullTerminatedAscii ( this bytes ) : string
bytes this
Résultat string

ToNullTerminatedUTF8() public static méthode

public static ToNullTerminatedUTF8 ( this bytes ) : string
bytes this
Résultat string