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

ファイルを表示 Open project: Microsoft/RTVS

Public Methods

Method 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

Method Description
HexCharToDecimal ( char c, int &val ) : bool

Method Details

ConvertCharacterCodes() public static method

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
return string

EnsureLineBreak() public static method

public static EnsureLineBreak ( this s ) : string
s this
return string

FromRPath() public static method

public static FromRPath ( this s ) : string
s this
return string

FromRStringLiteral() public static method

public static FromRStringLiteral ( this s ) : string
s this
return string

ProjectRelativePathToRemoteProjectPath() public static method

public static ProjectRelativePathToRemoteProjectPath ( this path, string remoteRoot, string projectName ) : string
path this
remoteRoot string
projectName string
return string

ToRBooleanLiteral() public static method

public static ToRBooleanLiteral ( this b ) : string
b this
return string

ToRName() public static method

public static ToRName ( this s ) : string
s this
return string

ToRPath() public static method

public static ToRPath ( this s ) : string
s this
return string

ToRStringLiteral() public static method

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

ToUnicodeQuotes() public static method

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
return string