C# 클래스 ABB.Swum.SamuraiIdSplitter

Used to split the identifiers in a program into their constituent words.
상속: IdSplitter
파일 보기 프로젝트 열기: abb-iss/Swum.NET 1 사용 예제들

공개 메소드들

메소드 설명
CountProgramWords ( ISrcMLArchive archive ) : int>.Dictionary

Counts the number of occurrences of words within the identifiers in the given srcml files.

SamuraiIdSplitter ( int>.Dictionary programWordCount ) : System

Creates a new IdentifierSplitter using the specified word count dictionary.

SamuraiIdSplitter ( string programWordCountPath ) : System

Creates a new IdentifierSplitter using the specified program word count file.

Split ( string identifier ) : string[]

Splits a program identifier into its constituent words.

Split ( string identifier, bool printSplitTrace ) : string[]

Splits a program identifier into its constituent words.

비공개 메소드들

메소드 설명
IncludeIdentifier ( string word, int count ) : bool
Initialize ( int>.Dictionary programWordCount ) : void

Reads the necessary data files and initializes the member variables.

IsPrefix ( string word ) : bool

Checks whether the supplied word is a known prefix.

IsSuffix ( string word ) : bool

Checks whether the supplied word is a known suffix.

Score ( string word ) : double
SplitOnUppercaseToLowercase ( string word ) : string[]

Splits a word where an uppercase letter is followed by a lowercase letter. The word is split only once, at the first matching location. This method assumes the input consists of zero-or-more uppercase letters followed by zero-or-more lowercase letters.

SplitSameCase ( string word ) : string[]

Splits a word into subwords. The word should be either (1) all lowercase, (2) all uppercase, or (3) a single uppercase letter followed by lowercase letters

SplitSameCase ( string word, double noSplitScore ) : string[]

Splits a word into subwords. The word should be either (1) all lowercase, (2) all uppercase, or (3) a single uppercase letter followed by lowercase letters

메소드 상세

CountProgramWords() 공개 정적인 메소드

Counts the number of occurrences of words within the identifiers in the given srcml files.
public static CountProgramWords ( ISrcMLArchive archive ) : int>.Dictionary
archive ISrcMLArchive An archive containing the srcml files to analyze.
리턴 int>.Dictionary

SamuraiIdSplitter() 공개 메소드

Creates a new IdentifierSplitter using the specified word count dictionary.
public SamuraiIdSplitter ( int>.Dictionary programWordCount ) : System
programWordCount int>.Dictionary A dictionary containing the local program word counts.
리턴 System

SamuraiIdSplitter() 공개 메소드

Creates a new IdentifierSplitter using the specified program word count file.
public SamuraiIdSplitter ( string programWordCountPath ) : System
programWordCountPath string The path to the file containing the local program word counts.
리턴 System

Split() 공개 메소드

Splits a program identifier into its constituent words.
public Split ( string identifier ) : string[]
identifier string The identifier to split.
리턴 string[]

Split() 공개 메소드

Splits a program identifier into its constituent words.
public Split ( string identifier, bool printSplitTrace ) : string[]
identifier string The identifier to split.
printSplitTrace bool Whether or not to print a trace of the splitting process.
리턴 string[]