C# 클래스 SyntaxHighlighter.RtfParser

簡易 RTF パーサー。 ぶっちゃけ、Visual Studio のテキストエディターが出力する RTF 以外対応する気まるでなし。
상속: IParser
파일 보기 프로젝트 열기: ufcpp/UfcppSample 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ColorToTagNameCsharp string>.IDictionary
ColorToTagNameXml string>.IDictionary

공개 메소드들

메소드 설명
Parse ( string text ) : string

Visual Studio のソースエディターからコピった RTF 文章を、ufcpp で使ってる XML 形式に変換する。

RtfParser ( Mode mode ) : System

비공개 메소드들

메소드 설명
DecodeU ( Match m ) : string
FormatTag ( string tag ) : string
GetCfNumber ( Match m ) : int
GetTag ( Match m ) : string
InsertTag ( Match m ) : string

RTF の \cf* を XML タグに置き換える。

ReadHeader ( string text ) : void

RTF のヘッダー情報を読み込む。

RemoveWhiteSpaceElement ( Match m ) : string

中に空白文字しかないタグを消す。

ReplaceUnicodeEscape ( Match m ) : string
ReplaceUnicodeEscape ( string s ) : string
TagReplace ( string text ) : string

< > & にしたり、 \par を消したり、 \cf* を XML タグに変換したり。

메소드 상세

Parse() 공개 메소드

Visual Studio のソースエディターからコピった RTF 文章を、ufcpp で使ってる XML 形式に変換する。
public Parse ( string text ) : string
text string RTF 文章
리턴 string

RtfParser() 공개 메소드

public RtfParser ( Mode mode ) : System
mode Mode
리턴 System

프로퍼티 상세

ColorToTagNameCsharp 공개적으로 정적으로 프로퍼티

public static IDictionary ColorToTagNameCsharp
리턴 string>.IDictionary

ColorToTagNameXml 공개적으로 정적으로 프로퍼티

public static IDictionary ColorToTagNameXml
리턴 string>.IDictionary