C# Класс Microsoft.R.Host.Client.RStringExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HexCharToDecimal ( char c, int &val ) : bool

Описание методов

ConvertCharacterCodes() публичный статический Метод

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
Результат string

EnsureLineBreak() публичный статический Метод

public static EnsureLineBreak ( this s ) : string
s this
Результат string

FromRPath() публичный статический Метод

public static FromRPath ( this s ) : string
s this
Результат string

FromRStringLiteral() публичный статический Метод

public static FromRStringLiteral ( this s ) : string
s this
Результат string

ProjectRelativePathToRemoteProjectPath() публичный статический Метод

public static ProjectRelativePathToRemoteProjectPath ( this path, string remoteRoot, string projectName ) : string
path this
remoteRoot string
projectName string
Результат string

ToRBooleanLiteral() публичный статический Метод

public static ToRBooleanLiteral ( this b ) : string
b this
Результат string

ToRName() публичный статический Метод

public static ToRName ( this s ) : string
s this
Результат string

ToRPath() публичный статический Метод

public static ToRPath ( this s ) : string
s this
Результат string

ToRStringLiteral() публичный статический Метод

public static ToRStringLiteral ( this s, char quote = '"', string nullValue = "NULL" ) : string
s this
quote char
nullValue string
Результат string

ToUnicodeQuotes() публичный статический Метод

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
Результат string