You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`String_CompareInvariantCultureIgnoreCase` compares two specified String objects using culture-sensitive sort rules, the invariant culture, and ignoring the case of the strings, and returns an integer that indicates their relative position in the sort order.
4
+
5
+
```csharp
6
+
String_CompareInvariantCultureIgnoreCase (
7
+
@strANVARCHAR (MAX),
8
+
@strBNVARCHAR (MAX)
9
+
)
10
+
RETURNSINT
11
+
```
12
+
13
+
## Parameters
14
+
15
+
-**strA**: The first string to compare.
16
+
-**strB**: The second string to compare.
17
+
18
+
## Returns
19
+
20
+
A 32-bit signed integer that indicates the lexical relationship between the two comparands.
21
+
22
+
| Value | Condition |
23
+
|:--------- |:--------- |
24
+
|Less than zero |strA precedes strB in the sort order.|
25
+
|Zero |strA occurs in the same position as strB in the sort order.|
26
+
|Greater than zero |strA follows strB in the sort order.|
It is equivalent to `String_CompareInvariantCultureIgnoreCase` except no NVARCHAR(MAX) parameters; it can be used when input data will never be over 4000 characters as this function offers better performance.
`String_CompareOrdinalIgnoreCase` compares two specified String objects using ordinal (binary) sort rules and ignoring the case of the strings, and returns an integer that indicates their relative position in the sort order.
4
+
5
+
```csharp
6
+
String_CompareOrdinalIgnoreCase (
7
+
@strANVARCHAR (MAX),
8
+
@strBNVARCHAR (MAX)
9
+
)
10
+
RETURNSINT
11
+
```
12
+
13
+
## Parameters
14
+
15
+
-**strA**: The first string to compare.
16
+
-**strB**: The second string to compare.
17
+
18
+
## Returns
19
+
20
+
A 32-bit signed integer that indicates the lexical relationship between the two comparands.
21
+
22
+
| Value | Condition |
23
+
|:--------- |:--------- |
24
+
|Less than zero |strA precedes strB in the sort order.|
25
+
|Zero |strA occurs in the same position as strB in the sort order.|
26
+
|Greater than zero |strA follows strB in the sort order.|
It is equivalent to `String_CompareOrdinalIgnoreCase` except no NVARCHAR(MAX) parameters; it can be used when input data will never be over 4000 characters as this function offers better performance.
`String_CompareOrdinal` compares two specified String objects using ordinal (binary) sort rules, and returns an integer that indicates their relative position in the sort order.
4
+
5
+
```csharp
6
+
String_CompareOrdinal (
7
+
@strANVARCHAR (MAX),
8
+
@strBNVARCHAR (MAX)
9
+
)
10
+
RETURNSINT
11
+
```
12
+
13
+
## Parameters
14
+
15
+
-**strA**: The first string to compare.
16
+
-**strB**: The second string to compare.
17
+
18
+
## Returns
19
+
20
+
A 32-bit signed integer that indicates the lexical relationship between the two comparands.
21
+
22
+
| Value | Condition |
23
+
|:--------- |:--------- |
24
+
|Less than zero |strA precedes strB in the sort order.|
25
+
|Zero |strA occurs in the same position as strB in the sort order.|
26
+
|Greater than zero |strA follows strB in the sort order.|
It is equivalent to `String_CompareOrdinal` except no NVARCHAR(MAX) parameters; it can be used when input data will never be over 4000 characters as this function offers better performance.
Copy file name to clipboardExpand all lines: docs2/pages/documentations/string/string.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,11 @@ Represents text as a sequence of UTF-16 code units.
5
5
6
6
| Name | Description | Example |
7
7
| :--- | :---------- | :------ |
8
-
|[String_Compare](/string-compare)| Compares two specified String objects. |[Try it]()|
9
-
|[String_CompareCurrentCulture](/string-compare-current-culture)| Compares two specified String objects using culture-sensitive sort rules and the current culture. |[Try it]()|
10
-
|[String_CompareCurrentCultureIgnoreCase](/string-compare-current-culture-ignore-case)| Compares two specified String objects using culture-sensitive sort rules, the current culture, and ignoring the case of the strings. |[Try it]()|
11
-
|[String_CompareIgnoreCase](/string-compare-ignore-case)| Compares two specified String objects ignoring their case. |[Try it]()|
12
-
|[String_CompareInvariantCulture](/string-compare-invariant-culture)| Compares two specified String objects using culture-sensitive sort rules and the invariant culture. |[Try it]()|
8
+
|[String_Compare(strA, strB)](/string-compare)| Compares two specified String objects. |[Try it]()|
9
+
|[String_CompareCurrentCulture(strA, strB)](/string-compare-current-culture)| Compares two specified String objects using culture-sensitive sort rules and the current culture. |[Try it]()|
10
+
|[String_CompareCurrentCultureIgnoreCase(strA, strB)](/string-compare-current-culture-ignore-case)| Compares two specified String objects using culture-sensitive sort rules, the current culture, and ignoring the case of the strings. |[Try it]()|
11
+
|[String_CompareIgnoreCase(strA, strB)](/string-compare-ignore-case)| Compares two specified String objects ignoring their case. |[Try it]()|
12
+
|[String_CompareInvariantCulture(strA, strB)](/string-compare-invariant-culture)| Compares two specified String objects using culture-sensitive sort rules and the invariant culture. |[Try it]()|
13
+
|[String_CompareInvariantCultureIgnoreCase(strA, strB)](/string-compare-invariant-culture-ignore-case)| Compares two specified String objects using culture-sensitive sort rules, the invariant culture, and ignoring the case of the strings. |[Try it]()|
14
+
|[String_CompareOrdinal(strA, strB)](/string-compare-ordinal)| Compares two specified String objects using ordinal (binary) sort rules. |[Try it]()|
15
+
|[String_CompareOrdinalIgnoreCase(strA, strB)](/string-compare-ordinal-ignore-case)| Compares two specified String objects using ordinal (binary) sort rules, and ignoring the case of the strings. |[Try it]()|
0 commit comments