## GlobalizationSettings::Compare(const U16String\&, const U16String\&, bool) method


Compares two string values according to certain collation rules.

```cpp
virtual int32_t Aspose::Cells::GlobalizationSettings::Compare(const U16String &v1, const U16String &v2, bool ignoreCase)
```


| Parameter | Type | Description |
| --- | --- | --- |
| v1 | const U16String\& | the first string |
| v2 | const U16String\& | the second string |
| ignoreCase | bool | whether ignore case when comparing values |

## ReturnValue

Integer that indicates the lexical relationship between the two comparands

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [GlobalizationSettings](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## GlobalizationSettings::Compare(const char16_t*, const char16_t*, bool) method


Compares two string values according to certain collation rules.

```cpp
virtual int32_t Aspose::Cells::GlobalizationSettings::Compare(const char16_t *v1, const char16_t *v2, bool ignoreCase)
```


| Parameter | Type | Description |
| --- | --- | --- |
| v1 | const char16_t* | the first string |
| v2 | const char16_t* | the second string |
| ignoreCase | bool | whether ignore case when comparing values |

## ReturnValue

Integer that indicates the lexical relationship between the two comparands

## See Also

* Class [Vector](../../vector/)
* Class [GlobalizationSettings](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
