C# Class Microsoft.R.Host.Client.RStringExtensions

Afficher le fichier Open project: Microsoft/RTVS

Méthodes publiques

Méthode Description
ConvertCharacterCodes ( this s ) : string

Convert R string that comes encoded into <U+ABCD> into Unicode characters so user can see actual language symbols rather than the character codes. Trims trailing '| __truncated__' that R tends to append at the end.

EnsureLineBreak ( this s ) : string
FromRPath ( this s ) : string
FromRStringLiteral ( this s ) : string
ProjectRelativePathToRemoteProjectPath ( this path, string remoteRoot, string projectName ) : string
ToRBooleanLiteral ( this b ) : string
ToRName ( this s ) : string
ToRPath ( this s ) : string
ToRStringLiteral ( this s, char quote = '"', string nullValue = "NULL" ) : string
ToUnicodeQuotes ( this s ) : string

Converts fancy quotes specified in the Unicode control range specifically, 0x91-0x94 to visible quotes. These are 'respectively are left/right single quotes and left/right double quotes. Example: https://everythingfonts.com/unicode/0x0091.

Private Methods

Méthode Description
HexCharToDecimal ( char c, int &val ) : bool

Method Details

ConvertCharacterCodes() public static méthode

Convert R string that comes encoded into <U+ABCD> into Unicode characters so user can see actual language symbols rather than the character codes. Trims trailing '| __truncated__' that R tends to append at the end.
public static ConvertCharacterCodes ( this s ) : string
s this
Résultat string

EnsureLineBreak() public static méthode

public static EnsureLineBreak ( this s ) : string
s this
Résultat string

FromRPath() public static méthode

public static FromRPath ( this s ) : string
s this
Résultat string

FromRStringLiteral() public static méthode

public static FromRStringLiteral ( this s ) : string
s this
Résultat string

ProjectRelativePathToRemoteProjectPath() public static méthode

public static ProjectRelativePathToRemoteProjectPath ( this path, string remoteRoot, string projectName ) : string
path this
remoteRoot string
projectName string
Résultat string

ToRBooleanLiteral() public static méthode

public static ToRBooleanLiteral ( this b ) : string
b this
Résultat string

ToRName() public static méthode

public static ToRName ( this s ) : string
s this
Résultat string

ToRPath() public static méthode

public static ToRPath ( this s ) : string
s this
Résultat string

ToRStringLiteral() public static méthode

public static ToRStringLiteral ( this s, char quote = '"', string nullValue = "NULL" ) : string
s this
quote char
nullValue string
Résultat string

ToUnicodeQuotes() public static méthode

Converts fancy quotes specified in the Unicode control range specifically, 0x91-0x94 to visible quotes. These are 'respectively are left/right single quotes and left/right double quotes. Example: https://everythingfonts.com/unicode/0x0091.
public static ToUnicodeQuotes ( this s ) : string
s this
Résultat string