294 references to CompareOptions
mscorlib (187)
system\collections\caseinsensitivecomparer.cs (1)
75
return m_compareInfo.Compare(sa, sb,
CompareOptions
.IgnoreCase);
system\globalization\compareinfo.cs (101)
80
private const
CompareOptions
ValidIndexMaskOffFlags =
81
~(
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreSymbols |
CompareOptions
.IgnoreNonSpace |
82
CompareOptions
.IgnoreWidth |
CompareOptions
.IgnoreKanaType);
85
private const
CompareOptions
ValidCompareMaskOffFlags =
86
~(
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreSymbols |
CompareOptions
.IgnoreNonSpace |
87
CompareOptions
.IgnoreWidth |
CompareOptions
.IgnoreKanaType |
CompareOptions
.StringSort);
90
private const
CompareOptions
ValidHashCodeOfStringMaskOffFlags =
91
~(
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreSymbols |
CompareOptions
.IgnoreNonSpace |
92
CompareOptions
.IgnoreWidth |
CompareOptions
.IgnoreKanaType);
355
internal static int GetNativeCompareFlags(
CompareOptions
options)
361
Contract.Assert(options !=
CompareOptions
.OrdinalIgnoreCase, "[CompareInfo.GetNativeCompareFlags]CompareOptions.OrdinalIgnoreCase should be handled separately");
366
if ((options &
CompareOptions
.IgnoreCase) != 0) { nativeCompareFlags |= NORM_IGNORECASE; }
367
if ((options &
CompareOptions
.IgnoreKanaType) != 0) { nativeCompareFlags |= NORM_IGNOREKANATYPE; }
368
if ((options &
CompareOptions
.IgnoreNonSpace) != 0) { nativeCompareFlags |= NORM_IGNORENONSPACE; }
369
if ((options &
CompareOptions
.IgnoreSymbols) != 0) { nativeCompareFlags |= NORM_IGNORESYMBOLS; }
370
if ((options &
CompareOptions
.IgnoreWidth) != 0) { nativeCompareFlags |= NORM_IGNOREWIDTH; }
371
if ((options &
CompareOptions
.StringSort) != 0) { nativeCompareFlags |= SORT_STRINGSORT; }
374
if (options ==
CompareOptions
.Ordinal) { nativeCompareFlags = COMPARE_OPTIONS_ORDINAL; }
376
Contract.Assert(((options & ~(
CompareOptions
.IgnoreCase |
377
CompareOptions
.IgnoreKanaType |
378
CompareOptions
.IgnoreNonSpace |
379
CompareOptions
.IgnoreSymbols |
380
CompareOptions
.IgnoreWidth |
381
CompareOptions
.StringSort)) == 0) ||
382
(options ==
CompareOptions
.Ordinal), "[CompareInfo.GetNativeCompareFlags]Expected all flags to be handled");
404
return (Compare(string1, string2,
CompareOptions
.None));
408
public unsafe virtual int Compare(String string1, String string2,
CompareOptions
options){
410
if (options ==
CompareOptions
.OrdinalIgnoreCase)
416
if ((options &
CompareOptions
.Ordinal) != 0)
418
if (options !=
CompareOptions
.Ordinal)
465
public unsafe virtual int Compare(String string1, int offset1, String string2, int offset2,
CompareOptions
options)
479
public unsafe virtual int Compare(String string1, int offset1, int length1, String string2, int offset2, int length2,
CompareOptions
options)
481
if (options ==
CompareOptions
.OrdinalIgnoreCase)
506
if ((options &
CompareOptions
.Ordinal) != 0)
508
if (options !=
CompareOptions
.Ordinal)
535
if (options ==
CompareOptions
.Ordinal)
569
public unsafe virtual bool IsPrefix(String source, String prefix,
CompareOptions
options)
583
if (options ==
CompareOptions
.OrdinalIgnoreCase)
588
if (options ==
CompareOptions
.Ordinal)
624
public unsafe virtual bool IsSuffix(String source, String suffix,
CompareOptions
options)
638
if (options ==
CompareOptions
.OrdinalIgnoreCase) {
642
if (options ==
CompareOptions
.Ordinal) {
684
return IndexOf(source, value, 0, source.Length,
CompareOptions
.None);
694
return IndexOf(source, value, 0, source.Length,
CompareOptions
.None);
698
public unsafe virtual int IndexOf(String source, char value,
CompareOptions
options)
708
public unsafe virtual int IndexOf(String source, String value,
CompareOptions
options)
724
return IndexOf(source, value, startIndex, source.Length - startIndex,
CompareOptions
.None);
734
return IndexOf(source, value, startIndex, source.Length - startIndex,
CompareOptions
.None);
738
public unsafe virtual int IndexOf(String source, char value, int startIndex,
CompareOptions
options)
748
public unsafe virtual int IndexOf(String source, String value, int startIndex,
CompareOptions
options)
760
return IndexOf(source, value, startIndex, count,
CompareOptions
.None);
766
return IndexOf(source, value, startIndex, count,
CompareOptions
.None);
772
public unsafe virtual int IndexOf(String source, char value, int startIndex, int count,
CompareOptions
options)
785
if (options ==
CompareOptions
.OrdinalIgnoreCase)
793
if ((options & ValidIndexMaskOffFlags) != 0 && (options !=
CompareOptions
.Ordinal))
806
public unsafe virtual int IndexOf(String source, String value, int startIndex, int count,
CompareOptions
options)
839
if (options ==
CompareOptions
.OrdinalIgnoreCase)
846
if ((options & ValidIndexMaskOffFlags) != 0 && (options !=
CompareOptions
.Ordinal))
879
source.Length,
CompareOptions
.None);
891
source.Length,
CompareOptions
.None);
895
public virtual int LastIndexOf(String source, char value,
CompareOptions
options)
906
public unsafe virtual int LastIndexOf(String source, String value,
CompareOptions
options)
920
return LastIndexOf(source, value, startIndex, startIndex + 1,
CompareOptions
.None);
926
return LastIndexOf(source, value, startIndex, startIndex + 1,
CompareOptions
.None);
930
public unsafe virtual int LastIndexOf(String source, char value, int startIndex,
CompareOptions
options)
936
public unsafe virtual int LastIndexOf(String source, String value, int startIndex,
CompareOptions
options)
944
return LastIndexOf(source, value, startIndex, count,
CompareOptions
.None);
950
return LastIndexOf(source, value, startIndex, count,
CompareOptions
.None);
957
public unsafe virtual int LastIndexOf(String source, char value, int startIndex, int count,
CompareOptions
options)
967
(options !=
CompareOptions
.Ordinal) &&
968
(options !=
CompareOptions
.OrdinalIgnoreCase))
991
if (options ==
CompareOptions
.OrdinalIgnoreCase)
1007
public unsafe virtual int LastIndexOf(String source, String value, int startIndex, int count,
CompareOptions
options)
1019
(options !=
CompareOptions
.Ordinal) &&
1020
(options !=
CompareOptions
.OrdinalIgnoreCase))
1047
if (options ==
CompareOptions
.OrdinalIgnoreCase)
1069
public unsafe virtual SortKey GetSortKey(String source,
CompareOptions
options)
1077
return CreateSortKey(source,
CompareOptions
.None);
1081
private SortKey CreateSortKey(String source,
CompareOptions
options)
1087
const
CompareOptions
ValidSortkeyCtorMaskOffFlags = ~(
CompareOptions
.IgnoreCase |
1088
CompareOptions
.IgnoreSymbols |
1089
CompareOptions
.IgnoreNonSpace |
1090
CompareOptions
.IgnoreWidth |
1091
CompareOptions
.IgnoreKanaType |
1092
CompareOptions
.StringSort);
1184
public virtual int GetHashCode(string source,
CompareOptions
options)
1191
if (options ==
CompareOptions
.Ordinal)
1196
if (options ==
CompareOptions
.OrdinalIgnoreCase)
1233
internal int GetHashCodeOfString(string source,
CompareOptions
options)
1239
internal int GetHashCodeOfString(string source,
CompareOptions
options, bool forceRandomizedHashing, long additionalEntropy)
system\globalization\datetimeformatinfo.cs (4)
755
if (String.Compare(eraName, m_eraNames[i], this.Culture,
CompareOptions
.IgnoreCase)==0) {
762
if (String.Compare(eraName, m_abbrevEraNames[i], this.Culture,
CompareOptions
.IgnoreCase)==0) {
2813
if (String.Compare(str.Value, str.Index, value.tokenString, 0, value.tokenString.Length, this.Culture,
CompareOptions
.IgnoreCase)==0) {
2916
if (String.Compare(str, 0, value.tokenString, 0, value.tokenString.Length, this.Culture,
CompareOptions
.IgnoreCase) == 0) {
system\globalization\datetimeparse.cs (6)
423
target, 0, length,
CompareOptions
.IgnoreCase)!=0) {
4547
return (m_info.Compare(Value, Index, count, target, 0, count,
CompareOptions
.IgnoreCase)==0);
4556
if (matchLength > valueRemaining || m_info.Compare(Value, Index, matchLength, target, 0, matchLength,
CompareOptions
.IgnoreCase) !=0) {
4578
if (m_info.Compare(Value, thisPosition, segmentLength, target, targetPosition, segmentLength,
CompareOptions
.IgnoreCase) !=0) {
4600
if (m_info.Compare(Value, thisPosition, segmentLength, target, targetPosition, segmentLength,
CompareOptions
.IgnoreCase) !=0) {
4632
if (m_info.Compare(Value, Index, str.Length, str, 0, str.Length,
CompareOptions
.Ordinal)==0) {
system\globalization\sortkey.cs (2)
43
internal
CompareOptions
options; // options
52
internal SortKey(String localeName, String str,
CompareOptions
options, byte[] keyData)
system\globalization\textinfo.cs (1)
626
CompareOptions
.IgnoreCase) == 0 ? Tristate.True : Tristate.False;
system\resources\manifestbasedresourcegroveler.cs (1)
478
if (comparer.Compare(existingName, givenName,
CompareOptions
.IgnoreCase) == 0)
system\string.cs (52)
603
return (CultureInfo.CurrentCulture.CompareInfo.Compare(this, value,
CompareOptions
.None) == 0);
606
return (CultureInfo.CurrentCulture.CompareInfo.Compare(this, value,
CompareOptions
.IgnoreCase) == 0);
609
return (CultureInfo.InvariantCulture.CompareInfo.Compare(this, value,
CompareOptions
.None) == 0);
612
return (CultureInfo.InvariantCulture.CompareInfo.Compare(this, value,
CompareOptions
.IgnoreCase) == 0);
670
return (CultureInfo.CurrentCulture.CompareInfo.Compare(a, b,
CompareOptions
.None) == 0);
673
return (CultureInfo.CurrentCulture.CompareInfo.Compare(a, b,
CompareOptions
.IgnoreCase) == 0);
676
return (CultureInfo.InvariantCulture.CompareInfo.Compare(a, b,
CompareOptions
.None) == 0);
679
return (CultureInfo.InvariantCulture.CompareInfo.Compare(a, b,
CompareOptions
.IgnoreCase) == 0);
1776
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB,
CompareOptions
.None);
1789
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB,
CompareOptions
.IgnoreCase);
1791
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB,
CompareOptions
.None);
1823
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB,
CompareOptions
.None);
1826
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB,
CompareOptions
.IgnoreCase);
1829
return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, strB,
CompareOptions
.None);
1832
return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, strB,
CompareOptions
.IgnoreCase);
1862
public static int Compare(String strA, String strB, CultureInfo culture,
CompareOptions
options) {
1887
return culture.CompareInfo.Compare(strA, strB,
CompareOptions
.IgnoreCase);
1889
return culture.CompareInfo.Compare(strA, strB,
CompareOptions
.None);
1912
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
CompareOptions
.None);
1938
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
CompareOptions
.IgnoreCase);
1940
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
CompareOptions
.None);
1971
return culture.CompareInfo.Compare(strA,indexA,lengthA, strB, indexB, lengthB,
CompareOptions
.IgnoreCase);
1973
return culture.CompareInfo.Compare(strA,indexA,lengthA, strB, indexB, lengthB,
CompareOptions
.None);
1983
public static int Compare(String strA, int indexA, String strB, int indexB, int length, CultureInfo culture,
CompareOptions
options) {
2071
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
CompareOptions
.None);
2074
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
CompareOptions
.IgnoreCase);
2077
return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
CompareOptions
.None);
2080
return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
CompareOptions
.IgnoreCase);
2209
return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(this, value,
CompareOptions
.None);
2212
return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(this, value,
CompareOptions
.IgnoreCase);
2215
return CultureInfo.InvariantCulture.CompareInfo.IsSuffix(this, value,
CompareOptions
.None);
2218
return CultureInfo.InvariantCulture.CompareInfo.IsSuffix(this, value,
CompareOptions
.IgnoreCase);
2248
return referenceCulture.CompareInfo.IsSuffix(this, value, ignoreCase ?
CompareOptions
.IgnoreCase :
CompareOptions
.None);
2364
return CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value, startIndex, count,
CompareOptions
.None);
2367
return CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value, startIndex, count,
CompareOptions
.IgnoreCase);
2370
return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count,
CompareOptions
.None);
2373
return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count,
CompareOptions
.IgnoreCase);
2376
return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count,
CompareOptions
.Ordinal);
2380
return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count,
CompareOptions
.IgnoreCase);
2504
return CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(this, value, startIndex, count,
CompareOptions
.None);
2507
return CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(this, value, startIndex, count,
CompareOptions
.IgnoreCase);
2510
return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count,
CompareOptions
.None);
2513
return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count,
CompareOptions
.IgnoreCase);
2515
return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count,
CompareOptions
.Ordinal);
2519
return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count,
CompareOptions
.IgnoreCase);
2589
return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(this, value,
CompareOptions
.None);
2592
return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(this, value,
CompareOptions
.IgnoreCase);
2595
return CultureInfo.InvariantCulture.CompareInfo.IsPrefix(this, value,
CompareOptions
.None);
2598
return CultureInfo.InvariantCulture.CompareInfo.IsPrefix(this, value,
CompareOptions
.IgnoreCase);
2635
return referenceCulture.CompareInfo.IsPrefix(this, value, ignoreCase ?
CompareOptions
.IgnoreCase :
CompareOptions
.None);
system\stringcomparer.cs (19)
138
[OptionalField] private
CompareOptions
_options;
144
_options = ignoreCase ?
CompareOptions
.IgnoreCase :
CompareOptions
.None;
150
_options = ignoreCase ?
CompareOptions
.IgnoreCase :
CompareOptions
.None;
153
internal CultureAwareComparer(CompareInfo compareInfo,
CompareOptions
options) {
159
_ignoreCase = ((options &
CompareOptions
.IgnoreCase) ==
CompareOptions
.IgnoreCase ||
160
(options &
CompareOptions
.OrdinalIgnoreCase ) ==
CompareOptions
.OrdinalIgnoreCase);
220
_options |= _ignoreCase ?
CompareOptions
.IgnoreCase :
CompareOptions
.None;
265
return _compareInfo.Compare(x, y, _ignoreCase?
CompareOptions
.IgnoreCase :
CompareOptions
.None);
272
return (_compareInfo.Compare(x, y, _ignoreCase?
CompareOptions
.IgnoreCase :
CompareOptions
.None) == 0);
281
CompareOptions
options =
CompareOptions
.None;
284
options |=
CompareOptions
.IgnoreCase;
PresentationFramework (20)
src\Framework\System\Windows\Documents\FixedFindEngine.cs (7)
74
CompareOptions
compareOptions = _InitializeSearch(cultureInfo, matchCase, matchAlefHamza, matchDiacritics, ref findPattern, out replaceAlefWithAlefHamza);
231
CompareOptions
compareOptions)
253
private static
CompareOptions
_InitializeSearch (CultureInfo cultureInfo,
260
CompareOptions
compareOptions =
CompareOptions
.None;
265
compareOptions |=
CompareOptions
.IgnoreCase;
289
compareOptions |=
CompareOptions
.IgnoreNonSpace;
src\Framework\System\Windows\Documents\TextFindEngine.cs (13)
426
CompareOptions
options = ignoreCase ?
CompareOptions
.IgnoreCase : 0;
560
CompareOptions
options =
CompareOptions
.IgnoreNonSpace | (ignoreCase ?
CompareOptions
.IgnoreCase : 0);
612
const
CompareOptions
options =
CompareOptions
.IgnoreSymbols |
CompareOptions
.StringSort |
CompareOptions
.IgnoreNonSpace;
628
const
CompareOptions
options =
CompareOptions
.IgnoreSymbols |
CompareOptions
.StringSort |
CompareOptions
.IgnoreNonSpace;
System (7)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
3411
&& -1 != CultureInfo.InvariantCulture.CompareInfo.IndexOf(options.CompilerOptions,"/debug:pdbonly",
CompareOptions
.IgnoreCase))
compmod\system\componentmodel\CultureInfoConverter.cs (1)
302
return compInfo.Compare(itemName1, itemName2,
CompareOptions
.StringSort);
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (4)
183
if (comparer.Compare(existingName, licResourceName,
CompareOptions
.IgnoreCase) == 0 ||
184
comparer.Compare(existingName, shortAssemblyName + ".exe.licenses",
CompareOptions
.IgnoreCase) == 0 ||
185
comparer.Compare(existingName, shortAssemblyName + ".dll.licenses",
CompareOptions
.IgnoreCase) == 0) {
233
if (comparer.Compare(existingName, name,
CompareOptions
.IgnoreCase) == 0 ||
net\System\Net\HttpListenerRequest.cs (1)
1227
i = CultureInfo.InvariantCulture.CompareInfo.IndexOf(headerValue, attrName, i,
CompareOptions
.IgnoreCase);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
497
return (0 == string.Compare(value, 0, nameDefaultPrefix, 0, nameDefaultPrefix.Length, CultureInfo.CurrentCulture,
CompareOptions
.None));
System.Data (35)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
497
return (0 == string.Compare(value, 0, nameDefaultPrefix, 0, nameDefaultPrefix.Length, CultureInfo.CurrentCulture,
CompareOptions
.None));
fx\src\data\System\Data\BaseCollection.cs (3)
76
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreKanaType |
CompareOptions
.IgnoreWidth) == 0) {
fx\src\data\System\Data\Common\AdapterUtil.cs (5)
1842
internal const
CompareOptions
compareOptions =
CompareOptions
.IgnoreKanaType |
CompareOptions
.IgnoreWidth |
CompareOptions
.IgnoreCase;
1864
return (0 == CultureInfo.InvariantCulture.CompareInfo.Compare(strvalue, strconst,
CompareOptions
.IgnoreCase));
fx\src\data\System\Data\Common\FieldNameLookup.cs (2)
99
index = LinearIndexOf(fieldName,
CompareOptions
.IgnoreCase);
108
private int LinearIndexOf(string fieldName,
CompareOptions
compareOptions) {
fx\src\data\System\Data\DataTable.cs (8)
85
private
CompareOptions
_compareFlags =
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreKanaType |
CompareOptions
.IgnoreWidth;
955
_compareFlags =
CompareOptions
.None;
958
_compareFlags =
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreKanaType |
CompareOptions
.IgnoreWidth;
fx\src\data\System\Data\Filter\ExpressionParser.cs (1)
1057
int c = comparer.Compare(reservedwords[i].word, name,
CompareOptions
.IgnoreCase);
fx\src\data\System\Data\SQLTypes\SQLString.cs (15)
99
private static readonly
CompareOptions
x_iValidCompareOptionMask =
100
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreWidth |
101
CompareOptions
.IgnoreNonSpace |
CompareOptions
.IgnoreKanaType;
451
CompareOptions
options = CompareOptionsFromSqlCompareOptions(x.m_flag);
748
public static
CompareOptions
CompareOptionsFromSqlCompareOptions(SqlCompareOptions compareOptions) {
749
CompareOptions
options =
CompareOptions
.None;
757
options |=
CompareOptions
.IgnoreCase;
759
options |=
CompareOptions
.IgnoreNonSpace;
761
options |=
CompareOptions
.IgnoreKanaType;
763
options |=
CompareOptions
.IgnoreWidth;
979
CompareOptions
options;
989
options =
CompareOptions
.None;
System.Data.Entity (6)
System\Data\Common\EntityUtil.cs (4)
37
internal const
CompareOptions
StringCompareOptions =
CompareOptions
.IgnoreKanaType |
CompareOptions
.IgnoreWidth |
CompareOptions
.IgnoreCase;
System\Data\Common\FieldNameLookup.cs (2)
82
index = LinearIndexOf(fieldName,
CompareOptions
.IgnoreCase);
91
private int LinearIndexOf(string fieldName,
CompareOptions
compareOptions) {
System.Data.SqlXml (25)
System\Xml\Xsl\Runtime\XmlCollation.cs (13)
39
private
CompareOptions
compops;
83
get { return GetFlag((int)
CompareOptions
.IgnoreCase); }
87
get { return GetFlag((int)
CompareOptions
.Ordinal); }
90
public
CompareOptions
CompareOptions {
92
return (
CompareOptions
)(value & ~Mask);
127
private static XmlCollation cp = new XmlCollation(CultureInfo.InvariantCulture, new Options((int)
CompareOptions
.Ordinal));
177
options.CompareOptions =
CompareOptions
.Ordinal;
208
case "IGNORECASE": flag = (int)
CompareOptions
.IgnoreCase; break;
209
case "IGNORENONSPACE": flag = (int)
CompareOptions
.IgnoreNonSpace; break;
210
case "IGNORESYMBOLS": flag = (int)
CompareOptions
.IgnoreSymbols; break;
211
case "IGNOREKANATYPE": flag = (int)
CompareOptions
.IgnoreKanaType; break;
212
case "IGNOREWIDTH": flag = (int)
CompareOptions
.IgnoreWidth; break;
238
options.CompareOptions =
CompareOptions
.Ordinal;
System\Xml\Xsl\Runtime\XsltFunctions.cs (12)
42
return compareInfo.IndexOf(s1, s2,
CompareOptions
.Ordinal) >= 0;
48
int idx = compareInfo.IndexOf(s1, s2,
CompareOptions
.Ordinal);
55
int idx = compareInfo.IndexOf(s1, s2,
CompareOptions
.Ordinal);
383
CompareOptions
opts =
CompareOptions
.None;
388
opts =
CompareOptions
.IgnoreCase |
CompareOptions
.IgnoreKanaType |
CompareOptions
.IgnoreWidth;
395
opts =
CompareOptions
.IgnoreCase;
401
if (opts !=
CompareOptions
.None) {
404
opts =
CompareOptions
.IgnoreCase;
409
result = -cultinfo.CompareInfo.Compare(s1, s2,
CompareOptions
.None);
System.Web (6)
Compilation\AssemblyBuilder.cs (2)
864
if (CultureInfo.InvariantCulture.CompareInfo.IndexOf(compilParams.CompilerOptions, "/warnaserror",
CompareOptions
.IgnoreCase) >= 0)
1137
"partial class",
CompareOptions
.IgnoreCase);
HttpRequest.cs (1)
842
i = CultureInfo.InvariantCulture.CompareInfo.IndexOf(headerValue, attrName, i,
CompareOptions
.IgnoreCase);
MultipartContentParser.cs (3)
145
int i1 = CultureInfo.InvariantCulture.CompareInfo.IndexOf(l, pattern, pos,
CompareOptions
.IgnoreCase);
148
i1 = CultureInfo.InvariantCulture.CompareInfo.IndexOf(l, pattern, pos,
CompareOptions
.IgnoreCase);
151
i1 = CultureInfo.InvariantCulture.CompareInfo.IndexOf(l, pattern, pos,
CompareOptions
.IgnoreCase);
System.Windows.Forms (4)
winforms\Managed\System\WinForms\ComboBox.cs (1)
4021
return compInfo.Compare(itemName1, itemName2,
CompareOptions
.StringSort);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
3156
return compInfo.Compare(itemName1, itemName2,
CompareOptions
.StringSort);
winforms\Managed\System\WinForms\ListBox.cs (1)
2841
return compInfo.Compare(itemName1, itemName2,
CompareOptions
.StringSort);
winforms\Managed\System\WinForms\ListView.cs (1)
3204
} else if (isPrefixSearch && CultureInfo.CurrentCulture.CompareInfo.IsPrefix(lvsi.Text, text,
CompareOptions
.IgnoreCase)) {
System.Xml (3)
System\Xml\XPath\Internal\StringFunctions.cs (3)
122
return compareInfo.IndexOf(s1, s2,
CompareOptions
.Ordinal) >= 0;
129
int idx = compareInfo.IndexOf(s1, s2,
CompareOptions
.Ordinal);
137
int idx = compareInfo.IndexOf(s1, s2,
CompareOptions
.Ordinal);