C# Класс System.Globalization.CompareInfo

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ClearDefaultAssemblyCache void
Compare int
CompareInfo System
CompareRegion int
GetCompareInfoByName CompareInfo
GetHashCodeOfString int
GetSortingLCID int
IDeserializationCallback void
IndexOfChar int
IndexOfString int
InitializeCompareInfo void*
InitializeNativeCompareInfo void*
IsSortable bool
IsSortable bool
LastIndexOfChar int
LastIndexOfString int
OnDeserialized void
OnDeserialized void
OnDeserializing void
OnSerializing void
SetName void
nativeCompareString int
nativeCreateSortKey byte[]
nativeGetGlobalizedHashCode int
nativeIsPrefix bool
nativeIsSortable bool
nativeIsSuffix bool

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

Метод Описание
Compare ( String string1, String string2 ) : int
Compare ( String string1, String string2, CompareOptions options ) : int
Compare ( String string1, int offset1, String string2, int offset2 ) : int
Compare ( String string1, int offset1, String string2, int offset2, CompareOptions options ) : int
Compare ( String string1, int offset1, int length1, String string2, int offset2, int length2 ) : int
Compare ( String string1, int offset1, int length1, String string2, int offset2, int length2, CompareOptions options ) : int
Equals ( Object value ) : bool
GetCompareInfo ( String name ) : CompareInfo
GetCompareInfo ( String name, Assembly assembly ) : CompareInfo
GetCompareInfo ( int culture ) : CompareInfo
GetCompareInfo ( int culture, Assembly assembly ) : CompareInfo
GetHashCode ( ) : int
GetSortKey ( String source ) : SortKey
GetSortKey ( String source, CompareOptions options ) : SortKey
IndexOf ( String source, String value ) : int
IndexOf ( String source, String value, CompareOptions options ) : int
IndexOf ( String source, String value, int startIndex ) : int
IndexOf ( String source, String value, int startIndex, CompareOptions options ) : int
IndexOf ( String source, String value, int startIndex, int count ) : int
IndexOf ( String source, String value, int startIndex, int count, CompareOptions options ) : int
IndexOf ( String source, char value ) : int
IndexOf ( String source, char value, CompareOptions options ) : int
IndexOf ( String source, char value, int startIndex ) : int
IndexOf ( String source, char value, int startIndex, CompareOptions options ) : int
IndexOf ( String source, char value, int startIndex, int count ) : int
IndexOf ( String source, char value, int startIndex, int count, CompareOptions options ) : int
IsPrefix ( String source, String prefix ) : bool
IsPrefix ( String source, String prefix, CompareOptions options ) : bool
IsSuffix ( String source, String suffix ) : bool
IsSuffix ( String source, String suffix, CompareOptions options ) : bool
LastIndexOf ( String source, String value ) : int
LastIndexOf ( String source, String value, CompareOptions options ) : int
LastIndexOf ( String source, String value, int startIndex ) : int
LastIndexOf ( String source, String value, int startIndex, CompareOptions options ) : int
LastIndexOf ( String source, String value, int startIndex, int count ) : int
LastIndexOf ( String source, String value, int startIndex, int count, CompareOptions options ) : int
LastIndexOf ( String source, char value ) : int
LastIndexOf ( String source, char value, CompareOptions options ) : int
LastIndexOf ( String source, char value, int startIndex ) : int
LastIndexOf ( String source, char value, int startIndex, CompareOptions options ) : int
LastIndexOf ( String source, char value, int startIndex, int count ) : int
LastIndexOf ( String source, char value, int startIndex, int count, CompareOptions options ) : int
ToString ( ) : String

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

Метод Описание
ClearDefaultAssemblyCache ( ) : void
Compare ( void pSortingTable, int sortingLCID, String string1, String string2, CompareOptions options ) : int
CompareInfo ( GlobalizationAssembly ga, int culture ) : System
CompareRegion ( void pSortingTable, int sortingLCID, String string1, int offset1, int length1, String string2, int offset2, int length2, CompareOptions options ) : int
GetCompareInfoByName ( string name, Assembly assembly ) : CompareInfo
GetHashCodeOfString ( string source, CompareOptions options ) : int
GetSortingLCID ( int culture ) : int
IDeserializationCallback ( Object sender ) : void
IndexOfChar ( void pSortingTable, int sortingLCID, String source, char value, int startIndex, int count, int options ) : int
IndexOfString ( void pSortingTable, int sortingLCID, String source, String value, int startIndex, int count, int options ) : int
InitializeCompareInfo ( void pNativeGlobalizationAssembly, int sortingLCID ) : void*
InitializeNativeCompareInfo ( void pNativeGlobalizationAssembly, int sortingLCID ) : void*
IsSortable ( String text ) : bool
IsSortable ( char ch ) : bool
LastIndexOfChar ( void pSortingTable, int sortingLCID, String source, char value, int startIndex, int count, int options ) : int
LastIndexOfString ( void pSortingTable, int sortingLCID, String source, String value, int startIndex, int count, int options ) : int
OnDeserialized ( ) : void
OnDeserialized ( StreamingContext ctx ) : void
OnDeserializing ( StreamingContext ctx ) : void
OnSerializing ( StreamingContext ctx ) : void
SetName ( string name ) : void
nativeCompareString ( int lcid, string string1, int offset1, int length1, string string2, int offset2, int length2, int flags ) : int
nativeCreateSortKey ( void pSortingFile, String pString, int dwFlags, int win32LCID ) : byte[]
nativeGetGlobalizedHashCode ( void pSortingFile, String pString, int dwFlags, int win32LCID ) : int
nativeIsPrefix ( void pSortingTable, int sortingLCID, String source, String prefix, CompareOptions options ) : bool
nativeIsSortable ( void pSortingFile, String pString ) : bool
nativeIsSuffix ( void pSortingTable, int sortingLCID, String source, String prefix, CompareOptions options ) : bool

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

Compare() публичный Метод

public Compare ( String string1, String string2 ) : int
string1 String
string2 String
Результат int

Compare() публичный Метод

public Compare ( String string1, String string2, CompareOptions options ) : int
string1 String
string2 String
options CompareOptions
Результат int

Compare() публичный Метод

public Compare ( String string1, int offset1, String string2, int offset2 ) : int
string1 String
offset1 int
string2 String
offset2 int
Результат int

Compare() публичный Метод

public Compare ( String string1, int offset1, String string2, int offset2, CompareOptions options ) : int
string1 String
offset1 int
string2 String
offset2 int
options CompareOptions
Результат int

Compare() публичный Метод

public Compare ( String string1, int offset1, int length1, String string2, int offset2, int length2 ) : int
string1 String
offset1 int
length1 int
string2 String
offset2 int
length2 int
Результат int

Compare() публичный Метод

public Compare ( String string1, int offset1, int length1, String string2, int offset2, int length2, CompareOptions options ) : int
string1 String
offset1 int
length1 int
string2 String
offset2 int
length2 int
options CompareOptions
Результат int

Equals() публичный Метод

public Equals ( Object value ) : bool
value Object
Результат bool

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

public static GetCompareInfo ( String name ) : CompareInfo
name String
Результат CompareInfo

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

public static GetCompareInfo ( String name, Assembly assembly ) : CompareInfo
name String
assembly Assembly
Результат CompareInfo

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

public static GetCompareInfo ( int culture ) : CompareInfo
culture int
Результат CompareInfo

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

public static GetCompareInfo ( int culture, Assembly assembly ) : CompareInfo
culture int
assembly Assembly
Результат CompareInfo

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetSortKey() публичный Метод

public GetSortKey ( String source ) : SortKey
source String
Результат SortKey

GetSortKey() публичный Метод

public GetSortKey ( String source, CompareOptions options ) : SortKey
source String
options CompareOptions
Результат SortKey

IndexOf() публичный Метод

public IndexOf ( String source, String value ) : int
source String
value String
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, String value, CompareOptions options ) : int
source String
value String
options CompareOptions
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, String value, int startIndex ) : int
source String
value String
startIndex int
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, String value, int startIndex, CompareOptions options ) : int
source String
value String
startIndex int
options CompareOptions
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, String value, int startIndex, int count ) : int
source String
value String
startIndex int
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, String value, int startIndex, int count, CompareOptions options ) : int
source String
value String
startIndex int
count int
options CompareOptions
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, char value ) : int
source String
value char
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, char value, CompareOptions options ) : int
source String
value char
options CompareOptions
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, char value, int startIndex ) : int
source String
value char
startIndex int
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, char value, int startIndex, CompareOptions options ) : int
source String
value char
startIndex int
options CompareOptions
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, char value, int startIndex, int count ) : int
source String
value char
startIndex int
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( String source, char value, int startIndex, int count, CompareOptions options ) : int
source String
value char
startIndex int
count int
options CompareOptions
Результат int

IsPrefix() публичный Метод

public IsPrefix ( String source, String prefix ) : bool
source String
prefix String
Результат bool

IsPrefix() публичный Метод

public IsPrefix ( String source, String prefix, CompareOptions options ) : bool
source String
prefix String
options CompareOptions
Результат bool

IsSuffix() публичный Метод

public IsSuffix ( String source, String suffix ) : bool
source String
suffix String
Результат bool

IsSuffix() публичный Метод

public IsSuffix ( String source, String suffix, CompareOptions options ) : bool
source String
suffix String
options CompareOptions
Результат bool

LastIndexOf() публичный Метод

public LastIndexOf ( String source, String value ) : int
source String
value String
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, String value, CompareOptions options ) : int
source String
value String
options CompareOptions
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, String value, int startIndex ) : int
source String
value String
startIndex int
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, String value, int startIndex, CompareOptions options ) : int
source String
value String
startIndex int
options CompareOptions
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, String value, int startIndex, int count ) : int
source String
value String
startIndex int
count int
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, String value, int startIndex, int count, CompareOptions options ) : int
source String
value String
startIndex int
count int
options CompareOptions
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, char value ) : int
source String
value char
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, char value, CompareOptions options ) : int
source String
value char
options CompareOptions
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, char value, int startIndex ) : int
source String
value char
startIndex int
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, char value, int startIndex, CompareOptions options ) : int
source String
value char
startIndex int
options CompareOptions
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, char value, int startIndex, int count ) : int
source String
value char
startIndex int
count int
Результат int

LastIndexOf() публичный Метод

public LastIndexOf ( String source, char value, int startIndex, int count, CompareOptions options ) : int
source String
value char
startIndex int
count int
options CompareOptions
Результат int

ToString() публичный Метод

public ToString ( ) : String
Результат String