C# Class Mono.Globalization.Unicode.SimpleCollator

显示文件 Open project: runefs/Marvin Class Usage Examples

Public Methods

Method Description
Compare ( string s1, int idx1, int len1, string s2, int idx2, int len2, CompareOptions options ) : int
Compare ( string s1, string s2 ) : int
Compare ( string s1, string s2, CompareOptions options ) : int
GetSortKey ( string s ) : SortKey
GetSortKey ( string s, CompareOptions options ) : SortKey
GetSortKey ( string s, int start, int length, CompareOptions options ) : SortKey
IndexOf ( string s, char target, CompareOptions opt ) : int
IndexOf ( string s, char target, int start, int length, CompareOptions opt ) : int
IndexOf ( string s, string target, CompareOptions opt ) : int
IndexOf ( string s, string target, int start, int length, CompareOptions opt ) : int
IsPrefix ( string src, string target, CompareOptions opt ) : bool
IsPrefix ( string s, string target, int start, int length, CompareOptions opt ) : bool
IsSuffix ( string src, string target, CompareOptions opt ) : bool
IsSuffix ( string s, string target, int start, int length, CompareOptions opt ) : bool
LastIndexOf ( string s, char target, CompareOptions opt ) : int
LastIndexOf ( string s, char target, int start, int length, CompareOptions opt ) : int
LastIndexOf ( string s, string target, CompareOptions opt ) : int
LastIndexOf ( string s, string target, int start, int length, CompareOptions opt ) : int
SimpleCollator ( CultureInfo culture ) : System

Private Methods

Method Description
Category ( int cp ) : byte
ClearBuffer ( byte buffer, int size ) : void
CompareFlagPair ( bool b1, bool b2 ) : int
CompareInternal ( string s1, int idx1, int len1, string s2, int idx2, int len2, bool &targetConsumed, bool &sourceConsumed, bool skipHeadingExtenders, bool immediateBreakup, Context &ctx ) : int
CompareOrdinal ( string s1, int idx1, int len1, string s2, int idx2, int len2 ) : int
CompareOrdinalIgnoreCase ( string s1, int idx1, int len1, string s2, int idx2, int len2 ) : int
CompareQuick ( string s1, int idx1, int len1, string s2, int idx2, int len2, bool &sourceConsumed, bool &targetConsumed, bool immediateBreakup ) : int
FillSortKeyRaw ( int i, ExtenderType ext, Mono.Globalization.Unicode.SortKeyBuffer buf, CompareOptions opt ) : void
FillSurrogateSortKeyRaw ( int i, Mono.Globalization.Unicode.SortKeyBuffer buf ) : void
FilterExtender ( int i, ExtenderType ext, System.Globalization.CompareOptions opt ) : int
FilterOptions ( int i, System.Globalization.CompareOptions opt ) : int
GetContraction ( char c ) : Mono.Globalization.Unicode.Contraction
GetContraction ( char c, Mono.Globalization.Unicode.Contraction clist ) : Mono.Globalization.Unicode.Contraction
GetContraction ( string s, int start, int end ) : Mono.Globalization.Unicode.Contraction
GetContraction ( string s, int start, int end, Mono.Globalization.Unicode.Contraction clist ) : Mono.Globalization.Unicode.Contraction
GetExtenderType ( int i ) : ExtenderType
GetNeutralCulture ( CultureInfo info ) : CultureInfo
GetSortKey ( string s, int start, int end, Mono.Globalization.Unicode.SortKeyBuffer buf, CompareOptions opt ) : void
GetTailContraction ( string s, int start, int end ) : Mono.Globalization.Unicode.Contraction
GetTailContraction ( string s, int start, int end, Mono.Globalization.Unicode.Contraction clist ) : Mono.Globalization.Unicode.Contraction
IndexOf ( string s, string target, int start, int length, byte targetSortKey, Context &ctx ) : int
IndexOfOrdinal ( string s, char target, int start, int length ) : int
IndexOfOrdinal ( string s, string target, int start, int length ) : int
IndexOfOrdinalIgnoreCase ( string s, char target, int start, int length ) : int
IndexOfOrdinalIgnoreCase ( string s, string target, int start, int length ) : int
IndexOfSortKey ( string s, int start, int length, byte sortkey, char target, int ti, bool noLv4, Context &ctx ) : int
IsHalfKana ( int cp, System.Globalization.CompareOptions opt ) : bool
IsIgnorable ( int i, System.Globalization.CompareOptions opt ) : bool
IsPrefix ( string s, string target, int start, int length, bool skipHeadingExtenders, Context &ctx ) : bool
IsSafe ( int i ) : bool
LastIndexOf ( string s, string target, int start, int length, byte targetSortKey, Context &ctx ) : int
LastIndexOfOrdinal ( string s, char target, int start, int length ) : int
LastIndexOfOrdinal ( string s, string target, int start, int length ) : int
LastIndexOfOrdinalIgnoreCase ( string s, char target, int start, int length ) : int
LastIndexOfOrdinalIgnoreCase ( string s, string target, int start, int length ) : int
LastIndexOfSortKey ( string s, int start, int orgStart, int length, byte sortkey, int ti, bool noLv4, Context &ctx ) : int
Level1 ( int cp ) : byte
Level2 ( int cp, ExtenderType ext ) : byte
MatchesBackward ( string s, int &idx, int end, int orgStart, int ti, byte sortkey, bool noLv4, Context &ctx ) : bool
MatchesBackwardCore ( string s, int &idx, int end, int orgStart, int ti, byte sortkey, bool noLv4, ExtenderType ext, Mono.Globalization.Unicode.Contraction &ct, Context &ctx ) : bool
MatchesForward ( string s, int &idx, int end, int ti, byte sortkey, bool noLv4, Context &ctx ) : bool
MatchesForwardCore ( string s, int &idx, int end, int ti, byte sortkey, bool noLv4, ExtenderType ext, Mono.Globalization.Unicode.Contraction &ct, Context &ctx ) : bool
MatchesPrimitive ( System.Globalization.CompareOptions opt, byte source, int si, ExtenderType ext, byte target, int ti, bool noLv4 ) : bool
QuickCheckPossible ( string s1, int idx1, int end1, string s2, int idx2, int end2 ) : bool
QuickIndexOf ( string s, string target, int start, int length, bool &testWasUnable ) : int
SetCJKTable ( CultureInfo culture, Mono.Globalization.Unicode.CodePointIndexer &cjkIndexer, byte &catTable, byte &lv1Table, Mono.Globalization.Unicode.CodePointIndexer &lv2Indexer, byte &lv2Table ) : void
ToDashTypeValue ( ExtenderType ext, System.Globalization.CompareOptions opt ) : byte

Method Details

Compare() public method

public Compare ( string s1, int idx1, int len1, string s2, int idx2, int len2, CompareOptions options ) : int
s1 string
idx1 int
len1 int
s2 string
idx2 int
len2 int
options CompareOptions
return int

Compare() public method

public Compare ( string s1, string s2 ) : int
s1 string
s2 string
return int

Compare() public method

public Compare ( string s1, string s2, CompareOptions options ) : int
s1 string
s2 string
options CompareOptions
return int

GetSortKey() public method

public GetSortKey ( string s ) : SortKey
s string
return System.Globalization.SortKey

GetSortKey() public method

public GetSortKey ( string s, CompareOptions options ) : SortKey
s string
options CompareOptions
return System.Globalization.SortKey

GetSortKey() public method

public GetSortKey ( string s, int start, int length, CompareOptions options ) : SortKey
s string
start int
length int
options CompareOptions
return System.Globalization.SortKey

IndexOf() public method

public IndexOf ( string s, char target, CompareOptions opt ) : int
s string
target char
opt CompareOptions
return int

IndexOf() public method

public IndexOf ( string s, char target, int start, int length, CompareOptions opt ) : int
s string
target char
start int
length int
opt CompareOptions
return int

IndexOf() public method

public IndexOf ( string s, string target, CompareOptions opt ) : int
s string
target string
opt CompareOptions
return int

IndexOf() public method

public IndexOf ( string s, string target, int start, int length, CompareOptions opt ) : int
s string
target string
start int
length int
opt CompareOptions
return int

IsPrefix() public method

public IsPrefix ( string src, string target, CompareOptions opt ) : bool
src string
target string
opt CompareOptions
return bool

IsPrefix() public method

public IsPrefix ( string s, string target, int start, int length, CompareOptions opt ) : bool
s string
target string
start int
length int
opt CompareOptions
return bool

IsSuffix() public method

public IsSuffix ( string src, string target, CompareOptions opt ) : bool
src string
target string
opt CompareOptions
return bool

IsSuffix() public method

public IsSuffix ( string s, string target, int start, int length, CompareOptions opt ) : bool
s string
target string
start int
length int
opt CompareOptions
return bool

LastIndexOf() public method

public LastIndexOf ( string s, char target, CompareOptions opt ) : int
s string
target char
opt CompareOptions
return int

LastIndexOf() public method

public LastIndexOf ( string s, char target, int start, int length, CompareOptions opt ) : int
s string
target char
start int
length int
opt CompareOptions
return int

LastIndexOf() public method

public LastIndexOf ( string s, string target, CompareOptions opt ) : int
s string
target string
opt CompareOptions
return int

LastIndexOf() public method

public LastIndexOf ( string s, string target, int start, int length, CompareOptions opt ) : int
s string
target string
start int
length int
opt CompareOptions
return int

SimpleCollator() public method

public SimpleCollator ( CultureInfo culture ) : System
culture System.Globalization.CultureInfo
return System